Questions tagged as 'javascript'

1
answer

Ajax reload div

I have a page that displays with Ajax database information inside the div #addremoveprod, so everything is fine, everything is printing perfectly. I have also got in a part of the code a function to delete the queries made in the database (al...
asked by 15.03.2017 / 16:10
1
answer

NodeJS module running before the EventListener

I am creating a module for node and when performing some tests with eventListener of type change in a field of type file , the module is executed before a file is inserted in the field. p> exports.preview = (fileInput...
asked by 16.03.2017 / 21:54
2
answers

When triggering an event in an array element (with querySelectAll) trigger only one element of another array (also with querySelectAll)

In the code below, I would like that when passing and removing the mouseover and mouseout ) on a li , change would be made only in the corresponding element to this li , in this case, the tags a and i within li...
asked by 14.03.2017 / 17:30
2
answers

I can not type in input

I have a problem landing page that I'm developing. I'm not a professional developer and I've never had a similar problem. I can not type in any of the inputs you have on the page. I saw some links where the problem was a div over the inputs,...
asked by 28.08.2017 / 15:52
1
answer

2 action on a submit button?

I am building a form where I send the data to my database, only type in that form wanted to run 2 actions on a submit button only which in the case actions are id="ajax_form" and id="step2Button" . How ca...
asked by 27.08.2017 / 02:38
1
answer

Multi-table query Node + Mysql

Considering the need to bring the result of a second table, based on the result of the first one, how would you do it with NodeJS? In PHP I would bring the result, and within while I would make another query by passing the ID of the first...
asked by 29.08.2017 / 02:57
1
answer

How do I make an IF and disable a field using script

I would like some help, wanted to make an IF to disable or enable a field that comes with a value of 1 or 0. $(document).ready(function () { $("#btnProduto").click(function () { $.ajax({ type: "POST", url: "Selecionar",...
asked by 26.08.2017 / 15:24
1
answer

Basic Authentication Nodejs

I'm starting now with NodeJS (I came from PHP), and I'm creating an API for a my app, I would like to know, how do I make queries based on Auth Basic, I'm not really sure how it works an app for a client, which I always needed to send in the head...
asked by 29.08.2017 / 00:01
1
answer

Show user codes

Hello! I have a forum and in the posts of my users, they can add codes to display them using the bbcode tag [code] [/ code] . I'd like to know how to do stylize code, just as it happens here in SOpt. Any code that I enter, it will ap...
asked by 26.08.2017 / 16:43
1
answer

Split whole text into javascript chunks

Good afternoon guys from stackoverflow I'm having to split the text I get from a return from an ajax. This my return has the following pattern It starts with what will be the value, the rest will be the content of an option, ending in the...
asked by 24.03.2017 / 18:08