Questions tagged as 'ajax'

1
answer

How to pass the dynamic variables from a url to php via ajax

First of all, I have already looked at several other posts about the subject here and I did not find what I need, my scenario is the following I am generating several EX links: challenge.php? id = 2 & name = joao challenge.php? id-3% name...
asked by 13.02.2016 / 03:24
2
answers

Return JSON to PHP

I'm doing a registration system, where the zip code search should appear as soon as the field changes. But the AJAX return is not working. How to return from JSON to PHP? PS: CEP's search is offline <script type="text/javascript">...
asked by 28.09.2015 / 22:52
1
answer

Return of the ajax function with result of a sql search

I'm making a section on my site, which has a select field. When I select something in this select , I want to perform a search on the DB, returning information about that selected item to use that information elsewhere in the site....
asked by 29.09.2015 / 21:04
3
answers

doubts with ajax and angular

I have my backend, in my controller I have a method salvarBairro(string dados) I'm using angular, this guy here calls my save methodBall of the back $scope.AddBairro = function (bairro) { $http.post("http://localhost:23714/Ba...
asked by 31.12.2015 / 10:20
2
answers

Load fields automatically with jquery and json

I need to fill in my fields after selecting one. My JSON is as follows: [{"codeVisit":"3EE","segmentVisit":"industria","streetVisit":"Rua Francisco Leandro Cunha","neighbVisit":"Vila","countryVisit":"Brasil","client":"5580262b600e53e82069bb...
asked by 16.06.2015 / 19:54
1
answer

WebService of the post office for more than one product per freight [closed]

Hello, I'm using the webservice of brokers: link To calculate the cost and term of the freight. The call is made via JS (jquery / ajax) and the webservice is in C #. I already use the service successfully for 1 product. The question i...
asked by 14.04.2016 / 21:48
1
answer

How to update "form / form" without Refresh?

My form is a shopping bag, when .submit () the form # add-cart-head, it adds the product without refresh, but I wanted to have an answer that updates the bag that sits on top of page. The "GET" in the sequence even works, but does not update for...
asked by 06.12.2014 / 01:31
2
answers

Jquery: Fadeout (), fadein () and Ajax call do not work in the right time

Hello. I have this code in JQuery: $('#prods').fadeOut(300, function(event){ chamaM(id_m); }); $('#prods').fadeIn(300); ChamaM() is an AJAX function that makes a call to PHP code, displaying the c...
asked by 21.08.2014 / 22:20
1
answer

Force a 200 header in Ajax while the PHP function goes to sleep

I am creating a chat function, however, the server is waiting for a DB interaction for a period of 10 seconds. The problem is that while the Ajax connection is open waiting for a response within 10 seconds, the browser does not accept to swit...
asked by 23.10.2014 / 19:52
1
answer

How to clear form data after saving to the database? via Ajax .net mvc

After you save an object in the database, the view continues to show the fields filled in! <fieldset> <legend>Endereco:</legend> @Html.ValidationSummary() @Html.HiddenFor(e => e.CodigoPessoa, new { id = "Pessoa",...
asked by 23.02.2015 / 14:39