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()?



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

Post New Answer

More jQuery Interview Questions

What is normally not included in a cloned copy? : jQuery Mobile

0 Answers  


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

0 Answers  


Can you please explain the difference between prop and attr? : jquery mobile

0 Answers  


How to fetch the values of selected checkbox array using jquery?

0 Answers  


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

0 Answers  


What are the different types of selectors in jquery?

0 Answers  


What is serialize() in jquery?

0 Answers  


What is difference between .setinterval() and .delay() ?

0 Answers  


Define animate function in jquery?

0 Answers  


What are various methods to make ajax request in jQuery?

1 Answers  


How to check data type of any variable in jquery? : jquery mobile

0 Answers  


Create a plugin that would add and remove a class on hover.

0 Answers  


Categories