Class Index | File Index

Classes


Class glow.net.CrossDomainRequest


Defined in: core.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
glow.net.CrossDomainRequest(method, url, opts)
Cross-domain request via window.name A request made via a form submission in a hidden iframe, with the result being communicated via the name attribute of the iframe's window.
Event Summary
Event Attributes Event Name and Description
 
error(event)
Fired when the request times out.
 
load(response)
Fired when the request is sucessful.
Class Detail
glow.net.CrossDomainRequest(method, url, opts)
Cross-domain request via window.name A request made via a form submission in a hidden iframe, with the result being communicated via the name attribute of the iframe's window. The URL that's requested should respond with a blank HTML page containing JavaScript that assigns the result to window.name as a string: `` Instances of this are returned by shortcut methods glow.net.crossDomainGet and glow.net.crossDomainPost
Parameters:
{string} method
The HTTP method to use for the request. Only 'POST' and 'GET' are considered cross-browser.
{string} url
The URL to request.
{Object} opts Optional
{Object|string} opts.data Optional
Data to send. This can be either a JSON-style object or a urlEncoded string.
{number} opts.timeout Optional
Time to allow for the request in seconds. No timeout is set by default.
{string} opts.blankUrl Optional, Default: '/favicon.ico'
The path of a page on same domain as the caller, ideally a page likely to be in the user's cache.
Event Detail
error(event)
Fired when the request times out.
Parameters:
{glow.events.Event} event
Event Object

load(response)
Fired when the request is sucessful.
Parameters:
{glow.net.CrossDomainResponse} response

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Jun 14 2010 14:24:09 GMT+0100 (BST)