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

Which is the fastest selector in jQuery?

821


What is the difference between the knockout and jquery?

792


What is the use of delay() method in JQuery?

856


What is a cdn? : jQuery Mobile

844


What were the biggest challenges of getting the jQuery 1.7 release ?

922


How To Use Ajax In Jquery?

794


What is the difference between jquery-x.x.x.js and jquery.x.x.x min.js?

810


Differentiate the concepts of .js and .min.js?

865


Explain the types of selectors in jquery?

794


What is the difference between prop() and attr() in jquery?

765


What is the difference between jquery.get() and jquery.ajax()?

869


What are some of the ways to provide effects? : jQuery Mobile

764


What is .remove()? : jquery mobile

778


How do you disable or enable a form element?

771


How to programmatically trigger a click event thats being handled by jquery only?

794