lz.DataRequest
An abstract class to represent data requests.

JavaScript: lz.DataRequest
extends lz.Eventable »
lz.DataRequest is an abstract class that can be extended to create new kinds of data requests, which are passed to a lz.DataProvider when making a request.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
error   String   read/write
  Used by dataprovider to record error messages
rawdata   String   read/write
  Raw data returned by request
requestor   Object   read/write
  An optional property that's the object using the DataRequest to pass into the DataProvider's doRequest method.
src   String   read/write
  An object which holds the protocol-specific source to load data from
status   String   read/write
  The status, one of 'success', 'timeout', 'error', 'ready' or 'loading'
timeout   Number   read/write
  The timeout in milliseconds

Class Attributes

Name (CSS property) Type (tag) Type (js) Default Category
ERROR   String "error" readonly
   
LOADING   String "loading" readonly
   
READY   String "ready" readonly
   
SUCCESS   String "success" readonly
   
TIMEOUT   String "timeout" readonly
   

Methods

LzDataRequest()
lz.DataRequest.LzDataRequest(requestor : Object);
The object using the DataRequest to pass into the DataProvider's doRequest method.
Parameter Name Type Description
requestor Object The object using the DataRequest to pass into the DataProvider's doRequest method.

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Name Description
onstatus Sent as data or other conditions occur during the execution of this request.

Events inherited from lz.Eventable

ondestroy