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 between $(this) and 'this' in jquery?
What are the selectors in jquery? How many types of selectors in jquery?
Explain the use of jquery .each() function? : jquery mobile
explain width() vs css(‘width’) in jquery
Explain event.preventdefault? : jquery mobile
When can jquery be used?
How can you use array with jquery?
What is the use of .size() method in jquery?
What is meant by a deep copy? : jQuery Mobile
What is meant by the term ‘theming’ in jquery mobile? : jQuery Mobile
What is jquery selectors?
Which command will give a version of jQuery?
What is jquery.holdready() function?
How can you use a jquery library in your project?
Explain the difference between jquery.size() and jquery.length?