Questions tagged as 'ajax'

1
answer

Popular type ["text"] by select

I'm trying to populate a type ["text"] through jquery and it's not working! Form: <div> <label>Plano:</label> <select name="plano" id="plano" required> <?php echo $stringPlanos; ?>...
asked by 26.09.2015 / 16:09
1
answer

write via the input button

Colleagues. I have the Tabs in Ajax template and thanks to our colleague DontVoteMeDown, I get through the button type button to change tabs, but how would I do it so that when changing tabs, I register the information of the previous tab i...
asked by 28.09.2015 / 22:02
1
answer

Ajax REST: PUT / DELETE does not work

I have 2 applications: 1) a Rest API on an XPTO server (using laravel 5.1), which has: ->header('Access-Control-Allow-Origin', '*.xpto.com.br') ->header('Access-Control-Allow-Credentials', 'true') ->header('Access-Control-All...
asked by 12.01.2016 / 22:04
2
answers

Do not run iframe while not clicking

Hello. I have Pagina1.php which has an iframe that sits on an invisible div (display: none), which shows the iframe only when I click on a button with the ajax function to show the invisible div that is the iframe. The problem is that when de...
asked by 25.08.2015 / 21:04
1
answer

Catch last generated ID in insert, return to ajax function and send to another page

I'm doing a program and on the first page I enter a series of values entered by the user into the bank and generate a id . After that I would like to return the value for the AJAX function and redirect to another page passing that id...
asked by 10.11.2015 / 22:27
1
answer

PHP Ajax - combobox state - cities

I want to do a select where, in a combobox, I select the state and with that open a new combobox with the respective cities of this state. I have this divided into two files: estado.php //conexao com o banco... $rs = mysql_query("select...
asked by 18.08.2015 / 15:05
2
answers

JS does not identify rendered class after the page loads?

html page: <html> <head> </head> <body> <span id="resposta1"><a style="cursor:pointer" onclick="resposta(1)">Responder</a></span> </body> </...
asked by 18.10.2015 / 01:43
1
answer

Send form without reloading the page being from different domains

I need to make a method that does not reload the page and send the data to a server in another domain. But I'm having problems with XMLHttpRequest . Does anyone know any method to do this and can send the data to the script PHP that is o...
asked by 13.07.2015 / 18:08
1
answer

Adding and removing favorite items with session php and ajax

Personal speech, I need to implement a feature on my site, which will allow the user to select the properties of their liking by clicking a "add to favorites" button, and clicking again can remove that item. I know I can use php and ajax sess...
asked by 29.06.2015 / 20:03
2
answers

data record via ajax

I'm trying to make data records by ajax and the data is not going to BD . I did a direct test between html and php and it worked, but html , ajax and php will not. HTML: <form method="post"> AVERAGE M...
asked by 06.06.2015 / 05:52