What are various methods to make ajax request in jQuery?
Answer Posted / 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 View All Answers
How to divide a page into parts using jquery mobile? : jquery mobile
Explain the difference between jquery-x.x.x.js and jquery.x.x.x min.js?
How to work with jQuery parent(), children() and siblings()?
How method can be called inside code behind using jQuery?
What is get()? : jquery mobile
How to stop jqm from auto-enhancing an element? : jquery mobile
What is $('div')? : jquery mobile
When can you use jquery?
What is difference between sorting string array and sorting numerical array in jquery?
How can we apply css in odd childs of parent node using jquery library?
differentiate between bind() vs live() vs delegate() methods in jquery.
Explain the use of each function in jquery?
How to validate phone number using jquery?
What are selectors in jquery mean ?
What is the use of each function in jQuery?