Class Index | File Index

Classes


Class glow.net.JsonpRequest


Defined in: core.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
A JSONP request.
Field Summary
Field Attributes Field Name and Description
 
Boolean indicating whether the request has completed
Method Summary
Method Attributes Method Name and Description
 
Abort the request.
Event Summary
Event Attributes Event Name and Description
 
abort(event)
Fired when the request is aborted.
 
error(event)
Fired when the request times out.
 
load()
Fired when the request is sucessful.
Class Detail
glow.net.JsonpRequest()
A JSONP request. Although instance of this can be created manually, using glow.net.jsonp is preferred.
Field Detail
{boolean} complete
Boolean indicating whether the request has completed
Method Detail
abort()
Abort the request. The script file may still load, but the 'load' event will not fire.
Returns:
this
Event Detail
abort(event)
Fired when the request is aborted.
Parameters:
{glow.events.Event} event
Event Object

error(event)
Fired when the request times out.
Parameters:
{glow.events.Event} event
Event Object

load()
Fired when the request is sucessful. The parameters to this event are whatever the datasource provides.
			glow.net.jsonp('http://twitter.com/statuses/user_timeline/15390783.json?callback={callback}')
				.on('load', function(data) {
					alert(data);
				});

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