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 are the four parameters used for jQuery Ajax method?

0 Answers  


Why do we use jquery? : jquery mobile

0 Answers  


Tell me is jquery a library for client scripting or server scripting? : jquery mobile

0 Answers  


How to select all elements using jQuery?

0 Answers  


What is jquery and what are the advantages?

0 Answers  






How to add or remove classes to an element in jquery?

0 Answers  


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

0 Answers  


What is called chaining?

0 Answers  


What is parseint() and why it is used?

0 Answers  


Define the script build up by jquery?

0 Answers  


How to get the current offset of the first matched element, in pixels, relative to the document using ?

0 Answers  


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

0 Answers  


Categories