Class glow.net.JsonpRequest
Defined in: core.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
A JSONP request.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Boolean indicating whether the request has completed
|
| Method Attributes | Method Name and Description |
|---|---|
|
abort()
Abort the request.
|
| 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);
});