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 |
Explain finish method in jquery? : jquery mobile
Tell me does jquery 2.0 supports ie? : jquery mobile
How can an element be checked if it contains a specific class?
What does jQuery data() function do?
Explain the difference between .js and .min.js? : jquery mobile
What is CDN?
What is method chaining in jquery?
What are the methods used to provide effects in jquery?
Explain event.preventdefault? : jquery mobile
Why do we need to go for JQuery?
What are the two types of CDNs?
What is queue() in jquery?