Questions tagged as 'javascript'

2
answers

Does one script start executing only after the other or at the same time?

If I load two scripts by html the second one will start running only after the first one has loaded or at the same time the first?     
asked by 27.07.2017 / 18:29
2
answers

Error in onclick

I have a form that I call the sameEmail () function in the onclick event. <input type="checkbox" name="MesmoEmail" value="S" id="mesmoEmail" onclick="mesmoEmail();"> Mesmo e-mail do cadastro And Javascript is this way: <script&...
asked by 19.08.2017 / 02:06
1
answer

Increment dynamic input name with jquery

I have a table that generates the row dynamically when I click a button. I need names to be incremented when generating a new line. Ex: name="product1" name="amount1" name="price1" name="total1" changing only the number (1, 2, 3 ...) How could y...
asked by 30.07.2017 / 18:55
2
answers

What is the equivalent of the arrow function?

This code is on a button. Two doubts, How to write this line without using arrow function? And whenever I run the first time it gets me undefined but in the second it works, I guess I have to add promises? How do you resolve this?...
asked by 21.08.2017 / 01:23
2
answers

Passing parameter through URL

How do you pass a parameter to another view screen without the user seeing it in the URL? For example: I have a query screen that the user clicks on the table and is redirected to another screen, which is the screen that opens the information...
asked by 28.07.2017 / 20:27
1
answer

Do not reload page when giving submit in modal

I have a modal to search for clients: Whatiscalledaregistrationformasfollows:$('#linkSearchShipperCustomer').on("click", function (e) { showDialogList("@Url.Action("IndexShadow", "ShipperCustomer")", "IdShipperCustomerDiv", "IdShipp...
asked by 08.06.2017 / 21:30
1
answer

Display elements one by one with jquery .each

Hello everyone. I'm having problems with jQuery .each. I have an xml like this: <dados> <usuarios> <usuario id="1"> <login>usuario12</login> <senha>21</senha> </usuario>...
asked by 07.06.2017 / 18:56
1
answer

Error using file-type

I had asked a question here yesterday, and Blogger helped me by passing this code: const http = require('http'); const fileType = require('file-type'); const url = 'http://cdn.sstatic.net/stackexchange/img/logos/so/so-logo.png'; http.get(url,...
asked by 08.06.2017 / 18:45
2
answers

Objects in javascript

I'm having some issues with Objects by using them in node js, I need an Object like this: var clients = {}; var user = { [client.id] : { 'nome': 'osvaldo', 'sala': 'B1' } }; clien...
asked by 10.07.2017 / 20:02
2
answers

As per multiple elementByID within a single variable?

I wanted to know if I have how and how I can put multiple elementDocumentID inside a single variable. Example: The code is to do validation, the code looks like this: var email = document.getElementById("email").value; var nome=document....
asked by 10.07.2017 / 18:47