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 are the four parameters used for jQuery Ajax method?
Why do we use jquery? : jquery mobile
Tell me is jquery a library for client scripting or server scripting? : jquery mobile
How to select all elements using jQuery?
What is jquery and what are the advantages?
How to add or remove classes to an element in jquery?
What is the difference between jquery.get() and jquery.ajax()?
What is called chaining?
What is parseint() and why it is used?
Define the script build up by jquery?
How to get the current offset of the first matched element, in pixels, relative to the document using ?
What are some of the ways to provide effects? : jQuery Mobile