Skip to main content
jP_web_icon

jPoint Docs

Go Search
Home
jPoint Docs
Examples
Blog
  
jPoint > jPoint Docs > API > jP.getScript()  

jP.getScript()

jP.getScript()

Method

jPoint.getScript( fileURL, [blocking], [callback] )

Overview

Setup after jQuery's getScript with the exception of an extra parameter, blocking, to load javascript files. See http://docs.jquery.com/Ajax/jQuery.getScript. Loads, and executes, a local JavaScript file using an HTTP GET request.

Arguments

Name
Type
Optional
Description
fileURL
String
false
fileURL is the URL of the file to load.
blocking
Boolean
true
blocking (optional, defaults to False) loads file asynchronously if False, synchronously if True.
callback
Function
true
callback (optional) is a function to be called after script is called (AND loaded in case blocking is True).

Returns

True if jQuery's getScript was succesfully called, otherwise False. Return value of True does not mean script has been retrieved, only that call was made. purpose: Get: returns value of jPoint.SiteURL

Last modified at 12/4/2009 2:29 PM  by Luke Orman