Wednesday, November 14, 2012

jQuery getScript Method

jQuery provides various methods like ajax, load, get, post, getJSON, getJSON etc  to make an Ajax call. In this post we shall see on how to use the getScript() method to make an Ajax call.

The getScript() method is used to receive and process JavaScript data response from the server.  The Syntax for the getScript() method is as follows.
$.getScript("<server URL>");

The script which is returned from the server is directly executed in the browser.

Related Post
jQuery getJSON Method
jQuery getJSON Example
jQuery getScript Method
jQuery getScript Example

Search Flipkart Products:

No comments: