Is there any advantage of using $.ajax() for ajax call against $.get() or $.post()?
Answer / chaitanya
By using jQuery post()/ jQuery get(), you always trust the response from the server and you believe it is going to be successful all the time. Well, it is certainly not a good idea to trust the response. As there can be n number of reason which may lead to failure of response.
Where jQuery.ajax() is jQuery's low-level AJAX implementation. $.get and $.post are higher-level abstractions that are often easier to understand and use, but don't offer as much functionality (such as error callbacks). Find out more here.
| Is This Answer Correct ? | 2 Yes | 0 No |
How to use jquery library in our asp.net project?
What are various methods to make ajax request in jQuery?
What are the basic selectors in jQuery?
List browser related issues for jquery?
What are the four parameters used for jQuery Ajax method?
Which version of jquery file should be used?
What is the use of queue() in jquery?
What is the difference between calling stop(true,true) and finish method?
What is a jquery library?
What does $("div.parent") will select?
How we can modify the css class in jquery?
How do you update ajax response with id " resilts"?