Questions tagged as 'javascript'

1
answer

Unix TimeStamp Convert to +02: 00

I have the following date 1535440000 I am converting it in such a way to Timestamp: recvTime: new Date(params.contextResponses[i].contextElement.attributes[j].metadatas[k].value * 1000).toISOString() The problem is that I have to con...
asked by 24.09.2018 / 15:50
2
answers

Problem when reloading page and maintaining content

I have the following problem: some time ago I adapted a jQuery script for a menu that changes the inside of a page hiding and showing the content according to the link that is pressed, the content is on a single page and I do not know how to do...
asked by 30.08.2018 / 21:54
1
answer

How to wait for the answer of a query in MongoDB with NodeJS?

I have a MySQL database in which I keep address information that a device goes through. In this table I have the fields "latitude", "longitude" and "direction". And the main idea is to pass those records from MySQL to Mongo, but I want to avoid...
asked by 24.08.2018 / 19:33
0
answers

How to make a progress bar with ajax?

I'm doing a fileupload with progress bar that shows the percentage of upload but at the time of uploading the file does not show the actual percentage of upload someone can help me the code I use is the following with this I upload the fil...
asked by 22.08.2018 / 21:12
0
answers

RED Node send notification only once

I am learning to use this program and I am in a situation where I do not know how to move forward. I do this to learn. I have the following situation. An API that reads a balanace and passes it to a node which checks what the balance is and if i...
asked by 02.10.2018 / 02:42
1
answer

activate JS function when it brings established value

I have a page to update where it brings me the data according to the record that I have selected, I have numerical fields I've validated them with a separation function of thousands and decimals, but in what method should I place the function so...
asked by 03.10.2018 / 19:31
1
answer

Variable value in arguments [0] to session variable

I need to assign a SESSION variable of php, with the value arguments [0] of a function of js. Can it be done? "PHP"................"JS" $_SESSION['id_ad'] = arguments[0];     
asked by 03.10.2018 / 21:18
1
answer

assign variable

How can I pass the value of String user to User user? public Usuario valida(String usuario) { System.out.println("Ingresa a metodo Valida BnUsuario: "+usuario); Usuario user = null; Connection con = null; Statem...
asked by 01.10.2018 / 22:25
0
answers

Error making an SQL query with JavaScript

I'm trying to do a SELECT from node.js to get an error from a table of "errors" but I get the following error and I do not know what else to do or what is due.    UnhandledPromiseRejectionWarning: RequestError: Could not find stored   procedu...
asked by 02.10.2018 / 00:43
0
answers

forEach vs. for in javascript does not come out the same

This is a JavaScript exercise that you can find on the following page: FreeCodeCamp excercise This is my code: function checkCashRegister(price, cash, cid) { debugger; var toReturn = cash - price; var cashArray = [0.01, 0....
asked by 18.08.2018 / 18:12