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

How to include jquery library in asp.net project?

794


Need to add jQuery file in both Master and Content page?

789


What is event.stoppropagation? : jquery mobile

851


How you get server response from an ajax request using jquery?

814


How to set jquery mobile responsive table width to 100% width despite css styles? : jquery mobile

758


Why jquery?

864


Is it possible to use jquery to make ajax request? : jquery mobile

862


Explain the use of each function in jquery?

4172


What are the the two types of cdns?

842


Explain the types of selectors in jquery?

809


What is the difference between size and length of jQuery?

858


How to get/set the html contents of an element using jQuery?

841


What is the use of delegate() method in jquery?

802


How can we add change font size using jquery?

819


What are the basic selectors in jQuery?

856