Questions tagged as 'javascript'

1
answer

How to decrypt javascript string hidden content?

In Google Chrome there is a wide variety of extensions to download background videos or at the same time use the developer tools and sources you can visualize the links with the website. But for some reason there is a string encoding with...
asked by 28.06.2017 / 05:15
1
answer

Problem if a function of a Javascript function

   Good, I have a problem and it only works for me the first time I give it, that is, the first if (what I hide it), but when I give it back it does not show it and it stays hidden the elements function funcion_ocultar_mostrar () {...
asked by 14.10.2018 / 16:26
4
answers

Problem Variable range in JavaScript

I have a very strange variable scope problem, I am using the setInterval () function and there is a variable that has no scope in this function. this is my code: cantidad = 14; nItemCart= 14; interval=[]; restarCantidad(cantidad, nIte...
asked by 07.07.2017 / 18:57
2
answers

What is the difference between dependencies and development dependencies in node?

When I initialize npm init and install the dependencies, I would like to know what is the difference between dependencias de desarrollo and dependencias ?     
asked by 05.07.2017 / 22:43
1
answer

help syntaxError: unexpected token {in json at position 4

I do not know where the error is, but if you make the query well $.ajax({ url: base_url + 'cargar/carga', type : "POST", data: {id:id}, success: function(json,textStatus, jqXHR) { console.log(json...
asked by 24.10.2018 / 02:03
1
answer

POST method to send form data with AJAX without JQUERY [duplicate]

Hi, I have a script in js that sends the form data from a page to the server and it works well with a Jquery function but I would like to be able to do it without the use of Jquery. script with jQuery (works) $("#contact-form").on("submit...
asked by 29.04.2018 / 13:09
1
answer

I do not add the row in the table by Jquery

I must add rows to a table using Jquery, I have not been able to see the error in the console, the picture shows what I should do after clicking the add button of the modal form: $(document).ready(function(){ $("#add").click(f...
asked by 06.05.2018 / 19:03
1
answer

Finder of an array of objects with Javascript

I have the following code that searches in an array the information that I insert in the input, in this case the code works very well function autocompletado () { document.getElementById("demo").innerHTML = ''; var preguntame =...
asked by 07.05.2018 / 18:27
1
answer

Search of data of an array on two arrays

I'm doing a code to try to convert some data into a table. Specifically, I have the data in 3 arrays with the following form: Survey [ age , name_of_periodico ] Interval [ First_number_of_interval (the number minor), Second_numero_...
asked by 02.05.2018 / 13:25
2
answers

Load select when selecting date

I have to load a select with different data, according to the date chosen, and I do not know how to achieve this. The only thing that occurred to me was to occupy onchange in the input where it is shown the time, but it does not...
asked by 08.11.2016 / 14:17