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


Please Help Members By Posting Answers For Below Questions

What is jquery and what are the advantages?

473


Tell me an example usage of jquery mobile? : jquery mobile

460


What is the between $(this) and 'this' in jquery?

491


How can jquery library be added to pages? Write a basic jquery code?

464


Why use jQuery filter() Methods?

510






What is .empty()? : jquery mobile

440


What is queue() in jquery? Use of queue() in jquery?

435


How to disable/enable an element with jQuery?

464


How to add and remove css classes to an element using jquery?

433


Is jQuery a programming language?

478


How to select combobox select value and text using jquery?

431


What are the advantage of using cdn? : jquery mobile

466


Where jQuery code is getting executed?

525


What is jquery connect and how to use it?

531


Difference between detach and remove? : jQuery Mobile

450