What are various methods to make ajax request in jQuery?



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

Post New Answer

More jQuery Interview Questions

What is called chaining?

0 Answers  


Explain slidetoggle() effect.

0 Answers  


Why we need jquery mobile? : jquery mobile

0 Answers  


How to multiple AJAX requests be run simultaneously in jQuery?

0 Answers  


Is vanilla js faster than jquery?

0 Answers  






How jQuery selectors are executed?

1 Answers  


Is jQuery replacement of Java Script?

2 Answers  


What is jquery selectors? Give some examples.

0 Answers  


Jumping off of jquery ui for a second, do you 'release early, release often' with all of your projects? What are your thoughts on that strategy?

0 Answers  


How does the jQuery pushStack function work?

0 Answers  


Can you use multiple document.ready() function on the same page?

0 Answers  


Explain url paremeter of jquery ajax method?

0 Answers  


Categories