Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Is jquery a framework?

741


How we can set the html contents of an element in jquery?

777


Why content injected into a page is not enhanced? : jquery mobile

710


How to control page titles in jquery mobile? : jquery mobile

719


What happen if you return false from a jQuery event handler?

800


How to check if number is numeric while using jquery 1.7+? : jquery mobile

788


What are all the ways to include jQuery in a page?

751


Can you write a jquery code to select all links inside the paragraph?

769


What is jquery.holdready() function?

781


What is $() in jquery library?

816


Why we need jquery mobile? : jquery mobile

747


Difference between event.PreventDefault and event.stopPropagation?

818


How to use css() in jquery?

781


What is $() in jquery?

785


What are your tools of choice to get the jquery job done?

743