Questions tagged as 'jquery'

1
answer

Better practice to make several ajax requests?

I need to clear the following doubt. I want to make 2 ajax requests, the problem is that I make the request 1 (I get a data) and I need to pass that data to the request 2. I have done the following: I create an ajax (jquery) and I get the da...
asked by 24.09.2018 / 20:48
1
answer

soCapture data from a row with JQuery - Ajax - Laravel

I have the following code that shows without any problem a table of records generated from a json array. $.each(query, function (name, value) { fileTable +="<tr><td width='10%'><input type='text' name='fechaAsignacion' id='f...
asked by 19.09.2018 / 16:50
1
answer

Open dynamic form only once

I have the html code to create a ticket or sales invoice. And I want to add all the checks that are desired as a form of payment. For this I have a new check button that dynamically loads a form with the data of it and a button to register. But...
asked by 26.09.2018 / 09:45
1
answer

click function stopPropagation

I have a function that when clicking a button displays a div with some information and use e.stopPropagation because I create another function that when clicking anywhere in html I hide the div again the thing is that...
asked by 21.09.2018 / 01:15
1
answer

How can I reload a table with javascript or jQuery in ajax?

I would like to reload a DataTable after the confirmation of a modal and thus add or remove some checkboxes, but every time I do it, another table is generated on top of the other, and the Datatable is unconfigured. (I am using this after the c...
asked by 12.09.2018 / 17:46
1
answer

How to unify jscript?

I have these two javascript , which I must place in several pages. How can I unify them in the same js ? if it is possible such a thing. The reason for wanting to unify it is only due to the fact that both js execute within themselves the...
asked by 12.09.2018 / 20:50
2
answers

How to separate quantities of thousands and decimals by "," and ".", using toLocaleString?

Good morning: I have the following amount var num = 54 var num2 = 1325 var num3 = 1293824 when applying toLocaleString they are left as follows: num.toLocaleString(undefined, {minimumFractionDigits: 2}) // Resultado 54,00 num2.toLocalStri...
asked by 18.09.2018 / 17:45
1
answer

Show only the current user profile image with PHP

Good morning. Someone will know by chance how I can show only the current profile image with PHP Currently I have this like this: $path = "files/".$id; if(file_exists($path)){ $directorio = opendir($path); while ($archivo = readd...
asked by 04.09.2018 / 23:12
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 / 09: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 / 20:50