Questions tagged as 'ajax'

2
answers

Lock / fade screen during postback

I know that to effect this blocking / fading effect I can use JavaScript or some AJAX component. I find this kind of care interesting to prevent the user from clicking on the same button several times, which can cause problems. In addition to...
asked by 26.11.2014 / 20:08
1
answer

AJAX Request Error - success does not work

Good afternoon guys, I have the following AJAX request: $(document).ready(function () { $.ajax({ url: "/membros.aspx/populaGridMembros", type: "POST", dataType: "json", contentType: "application...
asked by 17.01.2015 / 17:30
2
answers

Refresh the content of a page without reloading it

I'm working on a college project where I'd like to refresh the content of a page without reloading it. The page in question has its content received from a PHP script, which in turn takes the content to a MySQL database. This is...
asked by 18.09.2014 / 14:16
1
answer

Delete data without refreshing the page

I am no longer using extra pages to use functions within the PHP page. I use PDO with a php for the functions and use everything in the page without loading anything external. My question is how to use ajax in this case. Home I want to send a...
asked by 22.12.2014 / 19:50
2
answers

TokenMismatchException after any ajax error in Laravel 5.1

I'm working with Laravel a short time and I'm having a problem when I use ajax requests. When my application returns any error and I try to send one more request, Laravel sends me this error: TokenMismatchException in VerifyCsrfToken.php line...
asked by 07.01.2016 / 11:57
2
answers

Use the callback of a function

$(function () { $("#formulario").submit(function() { var cidade_nome = $('#cidade option:selected'); var ano1 = $('#ano1').val(); var ano2 = $('#ano2').val(); var registro; var param_1; var resposta; $.post('envia.php'...
asked by 12.02.2015 / 22:15
2
answers

Mount array through a list in ajax

I have an ajax function that consumes a webservice, and returns me a list, how do I get that list and I mount two arrays with the values? JS: function getCars() { $.ajax({ type: "POST", url: "CarService.asmx/GetAllCars", data: "Method...
asked by 16.08.2015 / 18:11
1
answer

Request ajax with unexpected return

I have an ajax code that makes a request in a php file, and in this php file has only one    echo json_encode ('test') In return, the string "teste"NULL , always with this NULL is returned, after any return. $.ajax({ url:...
asked by 12.05.2018 / 15:59
2
answers

Cancel the submission of the jQuery form

Good afternoon, I have a form and I want it when the submit button is clicked it does not reload the page for sending the post I placed return false; in function submit of jQuery but did not roll .. . $("#form-anunc...
asked by 16.11.2017 / 17:14
2
answers

How to solve jQuery ids problem?

I have two forms almost identical, one for physical and another for legal entity and these forms are hidden and appear as the result of a jQuery().change that determines if it is the form for the individual or legal entity to be used....
asked by 21.10.2014 / 17:07