Properties Methods Events Config Options Direct Link
Observable
  DataProxy

Class Ext.data.DataProxy

Package:Ext.data
Defined In:DataProxy.js
Class:DataProxy
Subclasses:DirectProxy, HttpProxy, MemoryProxy, ScriptTagProxy
Extends:Observable

Abstract base class for implementations which provide retrieval of unformatted data objects. This class is intended to be extended and should not be created directly. For existing implementations, see Ext.data.DirectProxy, Ext.data.HttpProxy, Ext.data.ScriptTagProxy and Ext.data.MemoryProxy.

DataProxy implementations are usually used in conjunction with an implementation of Ext.data.DataReader (of the appropriate type which knows how to parse the data object) to provide a block of Ext.data.Records to an Ext.data.Store.

The parameter to a DataProxy constructor may be an Ext.data.Connection or can also be the config object to an Ext.data.Connection.

Custom implementations must implement either the doRequest method (preferred) or the load method (deprecated). See Ext.data.HttpProxy.doRequest or Ext.data.HttpProxy.load for additional details.

Example 1

proxy: new Ext.data.ScriptTagProxy({
    url: 'http://extjs.com/forum/topics-remote.php'

}),

Example 2

proxy : new Ext.data.HttpProxy({
    method: 'GET',
    prettyUrls: false,
    url: 'local/default.php', // see options parameter for Ext.Ajax.request

    api: {
        // all actions except the following will use above url

        create  : 'local/new.php',
        update  : 'local/update.php'
    }
}),

Config Options

Config OptionsDefined By
 doRequest : Function
Abstract method that should be implemented in all subclasses (e.g.: HttpProxy.doRequest, DirectProxy.doRequest).
DataProxy

Public Properties

This class has no public properties.

Public Methods

MethodDefined By

Public Events

EventDefined By