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

Do we need to add the jquery file both at the master page and content page as well?

0 Answers  


Can you call C# code-behind method using jQuery? If yes,then how?

1 Answers  


Name some of the methods of jquery used to provide effects?

0 Answers  


How to use css() in jquery?

0 Answers  


What is the difference between prop and attr?

0 Answers  


What are the various ajax functions available in jquery ?

0 Answers  


How to add and remove css classes to an element using ?

0 Answers  


Differences Between jQuery .bind() and .live()?

0 Answers  


What is the difference between text() and html() in jquery?

0 Answers  


What is the jQuery code to select all links inside the paragraph?

0 Answers  


Please tell us that is jquery knockkout intended to compete with jquery or prototype or work with it?

0 Answers  


How can we apply css in even childs of parent node using jquery library?

0 Answers  


Categories