Class Index | File Index

Classes


Class XHRequest

Wraps an XMLHttpRequest object to load resources asynchronously.
Defined in: benchgl.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
XHRequest(options)
Creates a new XHRequest.
Method Summary
Method Attributes Method Name and Description
 
Handles the 'onabort' event of this XHRequest.
 
Handles the 'onerror' event of this XHRequest.
 
onLoad(e)
Handles the 'onload' event of this XHRequest.
 
Handles the 'onprogress' event of this XHRequest.
 
send()
Executes the request wrapped in this XHRequest.
Class Detail
XHRequest(options)
Creates a new XHRequest.
Parameters:
{Object} options Optional
The request's options.
{String} options.url Optional
The url for the request.
{String} options.method Optional
The method for the request.
{Boolean} options.async Optional
Is the request asynchronous?
{Boolean} options.binary Optional
Is the response in binary format?
{Function} options.onProgress Optional
Callback to call during request processing.
{Function} options.onLoad Optional
Callback to call after request loading.
{Function} options.onError Optional
Callback to call in case of error.
{Function} options.onAbort Optional
Callback to call if the request is aborted.
{Function} options.onSuccess Optional
Callback to call in case of success.
Method Detail
onAbort(e)
Handles the 'onabort' event of this XHRequest.
Parameters:
e

onError(e)
Handles the 'onerror' event of this XHRequest.
Parameters:
e

onLoad(e)
Handles the 'onload' event of this XHRequest.
Parameters:
e

onProgress(e)
Handles the 'onprogress' event of this XHRequest.
Parameters:
e

send()
Executes the request wrapped in this XHRequest.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 19 2011 00:47:49 GMT+0200 (CEST)