Questions tagged as 'javascript'

1
answer

ERR_HTTP_HEADERS_SENT - Json Web Tokens in Node.js

I'm trying to implement the JSON TOKEN in node.js but I have this error:    [ERR_HTTP_HEADERS_SENT]: Can not set headers after they are sent to the client at ServerResponse.setHeader (_http_outgoing.js: 469: 11) This is the code I have:...
asked by 17.09.2018 / 22:25
2
answers

.toggleClass in only 1 element even though there are several with the same class

I'm trying to create a multilevel menu but I do not know how to make it just add the class to the element that is inside the <li> that I clicked. The final idea is to press the arrow I created with JS and add or remove a class in...
asked by 18.09.2018 / 15:45
1
answer

Change icon mark of google maps API

I have a map with custom markers taken from a MySQL database. With this code inserted inside the variable locations the coordinates directions of my table. var locations = [ <?php foreach ($rows as $row) { ?>...
asked by 19.09.2018 / 10:15
3
answers

Call javascript function from a string

In my database I have as a string the function to execute and in another field the parameters that are sent to this function, the functions are already declared with their respective return value as I could call them from my string? That is:...
asked by 18.09.2018 / 21:59
1
answer

get thums with JQUERY

Good morning, someone could help me translate a piece of javaScript code to JQuery var canvas = document.querySelector("#video-canvas"), ctx = canvas.getContext("2d"), videoAs = document.querySelector("#main-video"); document.query...
asked by 08.09.2018 / 07:33
2
answers

How to count the values of an array that are equal and put the total number of those elements equal in a message?

I want it to show up in my message or in a notification icon that I am doing only the notifications that have status "1" for (var i = 0; i < data1.length; i++) { // total de los objetos del arreglo if (data1[i].estado == "1") { // todo...
asked by 07.09.2018 / 18:50
1
answer

JS | AngularJs | Show page when checking a checkbox

I need you to check a checkbox, this will take you to a page. But I get an error: funcion is not defined MY CODE home.html <ion-header> <ion-navbar> <ion-title> Selecciona tu ciudad </ion-title>...
asked by 09.09.2018 / 16:40
1
answer

How to make my script loop?

I created the following script: $(".circulo").click(function() { $('form').show(); }); $("#next").click(function() { $("#test1").hide(); $("#test2").show(); }); $("#back").click(function() { $("#test1").show(); $("#test2").hide();...
asked by 09.09.2018 / 18:57
1
answer

Get dates that are between a start date and a final date Moment js?

Cordial greeting colleagues, is that I'm using momentjs for handling dates in my application, my problem is that I need to compare a start date and an end date, then fill an array with the dates you are among these, eg if I have a start date and...
asked by 08.09.2018 / 00:19
1
answer

Uncaught TypeError: $ .confirm is not a function with Socket

I'm doing a shift system with% native% co in which I'm using a php that is called librería in which from the part where the appointment is scheduled works well, since after that saves, shows an alert with the library of fancyweb...
asked by 24.08.2018 / 15:25