Questions tagged as 'ajax'

2
answers

How to get data from a form from another page

Hello everyone, I have the following question: I have a web application that I want when I log into the "index.html" home page to get the 'name' and 'email' and put it with jquery on another page with php, ajax and jquery 'paginaprincipal.html'....
asked by 12.09.2017 / 16:33
3
answers

POST ajax and combo box problem

I'm trying to update a combo box dynamically, so I have two combo box "predata" and "prehora" , when the user selects a value in the predata field the pre-field has to perform a query in the database with the predata parameter , but...
asked by 14.06.2016 / 03:00
2
answers

Use array type variable that returns from ajax function in PHP?

Ihavetogetavariabletypearrayofajaxanditisreturningcorrectlyuntilconsole.log(data);butI'mnotsurehowtousethereturnvariableinsidetheindex.phpfile.Index.php</!DOCTYPEhtml><html><head><linkrel="stylesheet" href="css/bootstrap.mi...
asked by 23.07.2018 / 17:11
1
answer

function with error when return alert

I have a function that if it returns 1 a alert appears:    form uploaded successfully If you return 0 , a alert appears:    error submitting your form. When I leave the form blank the expected beha...
asked by 11.10.2018 / 22:29
2
answers

Problem deleting a record, fetch the next one

I'm trying to do in the code, a page edit, then the user on this edit page, it can delete the record, and if it delete, the system has to check, if there is a next record, it goes to edit screen next, if the next id does not exist, it tries the...
asked by 09.08.2018 / 13:58
1
answer

Let only one checkbox checkbox dynamically

I have a table, which I create dynamically, I need the user to be able to mark only a checkbox , that is when one has marked, at the time that it is marked another, it unchecks the other, and marks the new. I add this field in the table, l...
asked by 31.08.2018 / 22:20
1
answer

How to send via ajax the value of the selected option in a select?

I have two selects, one for states and one for cities. I want to get the value of the select state with the change event, send it via ajax, and retrieve cities that has the corresponding value. The only error you are giving in my code is t...
asked by 11.08.2016 / 21:44
2
answers

How to submit data from a form without a submit button and without refreshing the page

Hello, I'm a relatively new programmer in php and I'm developing a website. It is a site where there is a list of companies. And I wanted to implement in it, search filters, the first of them being a select "Select your city": <form...
asked by 30.08.2016 / 21:46
1
answer

Search post and load it into a div using Ajax on Wordpress

I have the following structure in wordpress. <input type="text" id="busca_artigo"> <button id="btn_busca_artigo">Enviar</button> <div id="resultado_pesquisa"></div> <button id="volta_artigo">Anterior</bu...
asked by 07.08.2018 / 06:12
1
answer

You can use Ajax request in meta http-equiv = 'refresh' content = '0;'

Friends can use a request in <meta http-equiv='refresh' content='0;'> . I have this code working below, if($buscasegura->execute() == ''); echo "<meta http-equiv='refresh' content='0; prod_carrinho2.php'>...
asked by 21.07.2018 / 05:18