Questions tagged as 'ajax'

4
answers

Checkbox checkbox with ajax

I have a checkbox that when checked or unchecked performs an update in the database, with ajax. But I do not know how to analyze his state change event. If you use checked it considers only the current state of the button. Can anyone h...
asked by 23.12.2015 / 13:50
4
answers

How to make Ajax requests, with Jquery, in different domains?

Is it possible to perform a POST-type request to a url that is not part of the domain of our application? $.ajax({ type: "POST", url: "http://www.dominioexterno.com.br/acao/", data: { var1: $('#input1').val(), var2:...
asked by 09.04.2014 / 15:09
1
answer

Problem sending JSON via ajax to PHP

I've been trying to solve this problem for 2 days, I saw some questions from the site, but none solves the problem. I'm putting Ajax in my CBT login, but it will not, it does not make a mistake. I already made a file_exists in the path of...
asked by 12.09.2018 / 03:35
2
answers

How to select exactly the searched element in jQuery independent of classes or ids?

If you run the code, the second form is influenced by the first one and does not take the data for itself. Of course this is a flaw in my jQuery. The first form works perfectly, the second one always takes the last value sent by the first one....
asked by 21.10.2014 / 19:26
3
answers

Ajax only returns if I put an "echo" instead of "return" in php

I'm building an application using ajax (jquery) and php, when returning a json by php, jquery only takes the value if I have given an ECHO, if I return the json through the return (I'm using a function in php ) jquery does not catch anything....
asked by 08.01.2018 / 01:28
3
answers

AJAX return handling with JQUERY

I have the following script, which processes the form and updates the list # div by ajax: <script type="text/javascript"> $(document).ready(function(){ $("#formulario").on("submit", function(e){ e.preventDefault()...
asked by 22.01.2018 / 13:39
3
answers

Function Jquery can not find the Controller when I go to the server

During the development the function below finds the Control and makes the request correctly, however after publishing on the server the function no longer finds the Controller: During development I have to leave it like this: url: "/Contr...
asked by 22.06.2017 / 16:33
4
answers

Submit does not call function

After changing the code, I left it this way but I looked at the browser console and realized that the submit button still does not call the function: <div class="container"> <div class="spacer"> <div class="row contact"> <...
asked by 15.06.2016 / 18:00
3
answers

Redirect page by passing "ajax" response to a div

I know the question is strange and may seem nonsensical, but I need a response, even if it's for impossível . I do a search in my index and I need to pass the result on it to another page positioning in a div. I did some research an...
asked by 02.08.2016 / 16:09
2
answers

Make a query with the return of an Ajax

I have a select field and need to query and load the result dynamically with Ajax . I currently have the following code (which does not seem to work or is incomplete) : $('#formProd select').change(function(){ $.ajax({...
asked by 17.03.2014 / 14:08