Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

jQuery provides several ajax request options.Following are the popular ajax request present in jQuery *

  • load(): Load a piece of html into a container DOM.

...

  • $.getJSON(): Load a JSON with GET method.

...

  • $.getScript(): Load a JavaScript.

...

  • $.get(): Use this to make a GET call and play extensively with the response.

...

  • $.post(): Use this to make a POST call and don’t want to load the response to some container DOM.

...

  • $.ajax(): Use this to do something when XHR fails, or you need to specify ajax options (e.g. cache: true) on the fly.

After evaluating few samples the most suitable calls would be used that suits the Tuscany architecture and modularity.

...