What are various methods to make ajax request in jQuery?



What are various methods to make ajax request in jQuery?..

Answer / chaitanya

Using below jQuery methods, you can make ajax calls.

load() : Load a piece of html into a container DOM

$.getJSON(): Load JSON with GET method.

$.getScript(): Load a JavaScript file.

$.get(): Use to make a GET call and play extensively with the response.

$.post(): Use to make a POST call and don't want to load the response to some container DOM.

$.ajax(): Use this to do something on XHR failures, or to specify ajax options (e.g. cache: true) on the fly.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

What is the difference between find and children methods in jquery?

0 Answers  


Define jquery filter?

0 Answers  


Which selector has better performance id or class and why?

0 Answers  


What is the difference between $.map and $.grep in jQuery?

0 Answers  


Have any of your startup projects failed dismally - if so, why and how did you learn from them?

0 Answers  






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

0 Answers  


What is the use of each function in jQuery?

0 Answers  


Explain the difference between parent() and parents() methods in jquery? : jquery mobile

0 Answers  


How to check variable is empty or not in jquery?

0 Answers  


What is a use of jquery filter?

0 Answers  


Explain the use of data-role=”page” attribute? : jQuery Mobile

0 Answers  


How to use it jquery knockout?

0 Answers  


Categories