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 jquery.holdready() function?

0 Answers  


Explain the starting point of code execution in jquery? : jquery mobile

0 Answers  


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

0 Answers  


Is jQuery a programming language?

0 Answers  


Tell me can we have multiple document.ready() function on the same page? : jquery mobile

0 Answers  


What is jquery.noconflict? Explain

0 Answers  


Tell me how to write browser specific code using jquery? : jquery mobile

0 Answers  


Can we select a element having a specific class in jquery ?

0 Answers  


explain bind() vs live() vs delegate() methods in jquery

0 Answers  


differentiate between bind() vs live() vs delegate() methods in jquery.

0 Answers  


Does jQuery 2.0 supports IE?

3 Answers  


What is event preventdefault () and event stoppropagation () in jquery?

0 Answers  


Categories