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 jquery and what are the advantages?
Tell me an example usage of jquery mobile? : jquery mobile
What is the between $(this) and 'this' in jquery?
How can jquery library be added to pages? Write a basic jquery code?
Why use jQuery filter() Methods?
What is .empty()? : jquery mobile
What is queue() in jquery? Use of queue() in jquery?
How to disable/enable an element with jQuery?
How to add and remove css classes to an element using jquery?
Is jQuery a programming language?
How to select combobox select value and text using jquery?
What are the advantage of using cdn? : jquery mobile
Where jQuery code is getting executed?
What is jquery connect and how to use it?
Difference between detach and remove? : jQuery Mobile