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 |
What are the four parameters used for jQuery Ajax method?
Back onto jquery ui' can you see jquery ui making more of an impression in the future, lead by the current successes of jquery?
What is resize() function in jquery?
explain bind() vs live() vs delegate() methods in jquery
Write the code to define a requirejs module with its dependencies.
How to increase cursor size in html body using jquery?
Explain finish method in jquery? : jquery mobile
What are selectors in jquery? Explain
How to disable jquery animation? : jquery mobile
Define animate function in jquery?
What is a dom in jquery? How can we make sure that dom is ready?
What is .detach()? : jquery mobile