Explain various methods to make ajax request in jQuery?
Submitted by: MuhammadUsing 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.
Submitted by: Muhammad
► 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.
Submitted by: Muhammad
Read Online jQuery Mobile Job Interview Questions And Answers
Top jQuery Mobile Questions
☺ | How to divide a page into parts using jQuery Mobile? |
☺ | How to load a page using jQuery Mobile? |
☺ | How to control page titles in jQuery Mobile? |
☺ | Why we need jQuery Mobile? |
☺ | Explain jQuery UI? |
Top Scripting language Categories
☺ | AngularJS Interview Questions. |
☺ | Ext-JS Interview Questions. |
☺ | Dojo Interview Questions. |
☺ | Expert Developer JavaScript Interview Questions. |
☺ | jQuery Mobile Interview Questions. |