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 |
What is the difference between find and children methods in jquery?
Define jquery filter?
Which selector has better performance id or class and why?
What is the difference between $.map and $.grep in jQuery?
Have any of your startup projects failed dismally - if so, why and how did you learn from them?
How to programmatically trigger a click event thats being handled by jquery only?
What is the use of each function in jQuery?
Explain the difference between parent() and parents() methods in jquery? : jquery mobile
How to check variable is empty or not in jquery?
What is a use of jquery filter?
Explain the use of data-role=”page” attribute? : jQuery Mobile
How to use it jquery knockout?