Questions tagged as 'ajax'

1
answer

How can I validate current time

How could you develop routine [code block], in order to treat the text field where you have to insert the Hours in real time (current time, arising from the moment). If the user tries to add hours past - issue warning that can not enter daylight...
asked by 19.04.2018 / 22:57
1
answer

How to refresh the page and stop updating?

I am making the following code: if(xhr.status == 200){ console.log(xhr.responseText); window.location.reload(); } But when I do this, it seems like it goes into an eternal loop and crashes my server. How do I make it r...
asked by 28.04.2018 / 04:03
1
answer

Ajax does not send image to folder with PHP

I am not able to send the image to a folder, using Ajax and PHP, the file name sends correctly, it is only the same file that does not write to the folder, the folder already has permission chmod 777. What do I need to do in ajax for PHP to w...
asked by 22.03.2018 / 14:27
1
answer

Ajax event does not execute with modal

I have this ajax. I call a modal, which in theory, when I clicked on an id, would execute that ajax, but it does not execute. $("#ClassificacaoId").on('change click', function () { valor = $('#ClassificacaoId').val();...
asked by 23.03.2018 / 15:53
1
answer

Edit group and real-time file

I want to develop for a client where he will select a group of employees and everyone can edit a file via web. He wants style as it does in Google Drive Docs, where the person types and the other person who is on another computer can see it in r...
asked by 29.03.2018 / 21:22
1
answer

Search system with on-demand loading

I have a search system with load on demand with php and jquery, I can search for letters correctly, and do the load on demand correctly, the problem is that when changing the letter to fetch, it loads the data of the new letter together with the...
asked by 29.03.2018 / 23:28
1
answer

How can I send a PHP variable on a page to another Javascript page using Ajax?

Hello, people, I would like to know how to send a php variable to another javascript document through Ajax. The PHP variable in question is this: $json = json_encode(simplexml_load_string($show)); Here it returns the value of a string, bu...
asked by 29.03.2018 / 20:10
1
answer

How to get the value of a php variable and use it in the ajax request

I am creating a order page with the code below, what I want is that when I choose the quantity of the product, it already appears the total value of the product x quantity . If I set the var price_prod1 = 10; value to work, but in the s...
asked by 07.03.2018 / 21:13
1
answer

Request ajax with Slim

I have a form and the following requisition: jQuery('#cadastro').submit(function() { var dados = jQuery(this).serialize(); jQuery.ajax({ type: "POST", url: "/cadastrar", data: dados,...
asked by 11.03.2018 / 04:09
1
answer

Send variables via GET by php Ajax

I'm creating a page in PHP that does a query in a JSON / PHP via ajax and I need it to send to the URL, form variables so I can do a query in this JSON / PHP. HTML: <form method="GET" name="formularioBusca"> <input type="text...
asked by 10.03.2018 / 15:45