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 |
How can jquery library be added to pages? Write a basic jquery code?
What is the purpose of fadetoggle() method in jquery?
What is wrong with this code line "$('#myid.3').text('blah blah!!!');"
Explain the difference between jquery's ready and holdready?
Explain finish method in jquery? : jquery mobile
Explain how jquery works?
Explain is jquery replacement of java script? : jquery mobile
How can we apply css in even childs of parent node using jquery library?
How is the deferred method in jquery important in relation to animate method?
Define jquery $.ajax() method?
What are the the two types of cdns?
Does jQuery 2.0 supports IE?