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
What is the need for jquery? : jQuery Mobile
What were the biggest challenges of getting the jQuery 1.7 release ?
Explain jquery.noconflict? : jquery mobile
Need to add jQuery file in both Master and Content page?
Is jQuery a programming language?
How method can be called inside code behind using jQuery?
With jquery which operating system is more compatible?
In what scenarios jQuery can be used?
What is the use of queue() in jquery?
What are the advantages of using cdn?
How to check or uncheck all checkboxes using jquery?
How to disable cut,copy and paste in TextBox using jQuery?
What is the use of noconflict() method in jquery?
List the advantages of jquery?
Why we use chaining in jquery?