Questions tagged as 'ajax'

1
answer

error when passing php variable with ajax

My problem is as follows I have a BOOSTRAP menu where the content is extracted from a database mysql , being that when selecting an option I load the content of a page in a field div of central id. When I make the selection I...
asked by 17.09.2018 / 22:52
4
answers

How to add a condition in this code

I have the following function in javacritps, but I want to be able to add a condition if the request is with yes, the checkbox is disable function MuestraDatos(Valor) { data = JSON.parse(Valor); var indice = 0;...
asked by 20.09.2018 / 21:06
2
answers

Select dependent on Django?

How do I place four select to my template that show state, municipality, location? and of course, if the user selects the state DF, the other select only brings the municipalities and localities. How do I do it? In order to save them al...
asked by 04.01.2016 / 18:07
3
answers

php always returns 0

I'm doing a calculation for php, picked up with jQuery and passed in ajax. All this within a wordpress (I think this does not influence the failure). After filling 3 fields (1 input and 2 select) you must send it by ajax and the php add the valu...
asked by 06.07.2018 / 18:23
5
answers

Execute $ .ajax within a cycle

I have a problem with the following code, I want to execute within a cycle for a call $.ajax until the exit condition of the cycle is fulfilled, however the cycle does all its iterations and in the final iteration run the ajax...
asked by 05.01.2017 / 21:33
1
answer

Get answer through ajax

I have a hypothetical problem : Mipagina.php <?php if(isset($_GET['nombre']) && !empty($_GET['nombre'])) :?> <?php $nombre = $_GET['nombre'];?> Hola <?php echo $nombre;?> <?php else:?> <form...
asked by 19.08.2016 / 18:48
1
answer

Javascript promises, ajax requests ()

Greetings, I have been struggling for a long time with a problem that I can not solve, I hope you can help me, I have reviewed many callback tutorials and promises but I can not solve my problem. Basically I need to make a request $ .ajax...
asked by 05.01.2017 / 07:23
1
answer

random code generator javascript

I found this code that generates random alphanumeric codes, I am using it to link 2 types of users, the user can only generate the code once and save it in a table with id and code, then that code is given to other users so that they register it...
asked by 22.03.2018 / 18:04
1
answer

Jquery Ajax Post (onchange infinite loop)

Good people I have the following problem: I have a dropdownList that depending on its value brings me by ajax a different form with its respective button, until there works well. <div id="contformularios1"> </di...
asked by 27.01.2016 / 15:49
2
answers

Problem with setTimeout

I did a function that updates a table and a graph with setTimeout () and it works perfectly. The problem is that there are occasions (not always) that if I'm on another screen, I see ajax calls (I've reviewed it in the requests, on the networ...
asked by 13.10.2016 / 21:00