Is there any advantage of using $.ajax() for ajax call against $.get() or $.post()?
Answer Posted / 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 |
Post New Answer View All Answers
What is a cdn? What are the advantages of using cdn?
What is the difference between jquery's ready and holdready?
Is it possible that jquery html work for both html and xml document?
How to check data type of any variable in jquery? : jquery mobile
Explain width() vs css(‘width’)?
How to use jquery?
What is the difference between jquery-x.x.x.js and jquery.x.x.x min.js?
Why html 5 inputs look different across devices and browsers? : jquery mobile
What is the difference between $(window).load and $(document).ready function in jquery?
What are the two types of CDNs?
What does jQuery data() function do?
What are the methods used to provide effects in jquery?
Which is the fastest selector in jQuery?
Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?
Is jquery code exicuted on the clientside, or serverside?