-
<inner> createIFrame(url) → {HTMLElement}
-
Creates an IFRAME tag for loading the JSONP script
Parameters:
Name |
Type |
Description |
url |
String
|
The source URL of the script |
- Source:
Returns:
The IFRAME tag
-
Type
-
HTMLElement
-
<inner> createXmlHttpRequest() → {XmlHttpRequest}
-
Creates a XmlHttpRequest object.
- Source:
Returns:
XmlHttpRequest object.
-
Type
-
XmlHttpRequest
-
<inner> isAbsoluteUrl(url) → {Boolean}
-
Checks whether the specified URL is an absolute URL.
Parameters:
Name |
Type |
Description |
url |
String
|
URL to check. |
- Source:
Returns:
true if the url is an absolute URL; false otherwise.
-
Type
-
Boolean
-
<inner> isAbsoluteUrl(url) → {Boolean}
-
Checks whether the specified URL is an absolute URL.
Parameters:
Name |
Type |
Description |
url |
String
|
URL to check. |
- Source:
Returns:
true if the url is an absolute URL; false otherwise.
-
Type
-
Boolean
-
<inner> isLocalUrl(url) → {Boolean}
-
Checks whether the specified URL is local to the current context.
Parameters:
Name |
Type |
Description |
url |
String
|
URL to check. |
- Source:
Returns:
true if the url is a local URL; false otherwise.
-
Type
-
Boolean
-
<inner> isLocalUrl(url) → {Boolean}
-
Checks whether the specified URL is local to the current context.
Parameters:
Name |
Type |
Description |
url |
String
|
URL to check. |
- Source:
Returns:
true if the url is a local URL; false otherwise.
-
Type
-
Boolean
-
-
Reads response headers into array.
Parameters:
Name |
Type |
Description |
xhr |
XMLHttpRequest
|
HTTP request with response available. |
headers |
Array
|
Target array to fill with name/value pairs. |
- Source:
-
-
Reads response headers into array.
Parameters:
Name |
Type |
Description |
inHeader |
Object
|
|
outHeader |
Array
|
|
- Source:
-
<inner> removeCallback(name, tick)
-
Removes a callback used for a JSONP request.
Parameters:
Name |
Type |
Description |
name |
String
|
Function name to remove. |
tick |
Number
|
Tick count used on the callback. |
- Source:
-
<inner> removeIFrame(iframe) → {Object}
-
Removes an iframe.
Parameters:
Name |
Type |
Description |
iframe |
Object
|
The iframe to remove. |
- Source:
Returns:
Null value to be assigned to iframe reference.
-
Type
-
Object
-
<inner> writeHtmlToIFrame(iframe, html)
-
Writes HTML to an IFRAME document.
Parameters:
Name |
Type |
Description |
iframe |
HTMLElement
|
The IFRAME element to write to. |
html |
String
|
The HTML to write. |
- Source: