大约有 11,000 项符合查询结果(耗时:0.0345秒) [XML]
How to send a PUT/DELETE request in jQuery?
...
You could use the ajax method:
$.ajax({
url: '/script.cgi',
type: 'DELETE',
success: function(result) {
// Do something with the result
}
});
...
jQuery: Return data after ajax call success [duplicate]
...You can pass in a callback function that handles the result:
function testAjax(handleData) {
$.ajax({
url:"getvalue.php",
success:function(data) {
handleData(data);
}
});
}
Call it like this:
testAjax(function(output){
// here you use the output
});
// Note: the call w...
Stop all active ajax requests in jQuery
I have a problem, when submitting a form all active ajax request fail, and that triggers error event.
16 Answers
...
Should I use .done() and .fail() for new jQuery AJAX code instead of success and error
...
As stated by user2246674, using success and error as parameter of the ajax function is valid.
To be consistent with precedent answer, reading the doc :
Deprecation Notice:
The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks will be deprecated in jQuery 1.8. To prepare your code ...
How does JavaScript handle AJAX responses in the background?
Since JavaScript runs in a single thread, after an AJAX request is made, what actually happens in the background? I would like to get a deeper insight into this, can anyone shed some light?
...
File upload progress bar with jQuery
I am trying to implement an AJAX file upload feature in my project. I am using jQuery for this; my code submits the data using AJAX. I also want to implement a file upload progress bar. How can I do this? Is there any way to calculate how much has already been uploaded so that I can calculate the pe...
How to get response status code from jQuery.ajax?
...code, all I am trying to do is to get the HTTP response code from a jQuery.ajax call. Then, if the code is 301 (Moved Permanently), display the 'Location' response header:
...
What is the best AJAX library for Django? [closed]
Which AJAX library is the best for django and why?
Looking for one with a large database of tutorials, books and detailed documentation.
Which one is the easiest to work with?
Which one is in early development but shows great promise for the future?
...
Call ASP.NET function from JavaScript?
...
Well, if you don't want to do it using Ajax or any other way and just want a normal ASP.NET postback to happen, here is how you do it (without using any other libraries):
It is a little tricky though... :)
i. In your code file (assuming you are using C# and .NET...
how to make a jquery “$.post” request synchronous [duplicate]
...
jQuery < 1.8
May I suggest that you use $.ajax() instead of $.post() as it's much more customizable.
If you are calling $.post(), e.g., like this:
$.post( url, data, success, dataType );
You could turn it into its $.ajax() equivalent:
$.ajax({
type: 'POST',
...