Results 1 to 5 of 5

Thread: ExtJS 1.1 Ext.data.HttpProxy to ExtJS 4.0 mapping

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    Bangalore, INDIA
    Posts
    51

    Default Answered: ExtJS 1.1 Ext.data.HttpProxy to ExtJS 4.0 mapping

    In ExtJS 1.1, Ext.data.HttpProxy is used, can anyone pls tell me its corresponding mapping in ExtJS 4.0?

  2. Ext.data.proxy.Ajax is the direct counterpart for Ext1.1's Ext.data.HTTPProxy.

    But the whole Data Package was refactored and improved a lot you will not find direct counterparts for the old methods.

    Some pointers:

    #getConnection() -> All Ext.data.proxy.Ajax objects use the Ext.Ajax object (one single Ext.data.Connection)

    #load() -> is now called #read() but you normally don't call this manually. The store calls it when necessary.


    Also have a look at the Data Package Guide: http://docs.sencha.com/ext-js/4-0/#!/guide/data this might shed some light on how things are done the ExtJS 4 way.

  3. #2
    Sencha User
    Join Date
    Sep 2011
    Posts
    6
    Answers
    1

    Default

    Are you looking for Ext.data.proxy.Proxy. The implementation with store would look something like

    Code:
    Ext.create('Ext.data.Store', {
                model: 'model',
                proxy:{
                     type: 'ajax',
                     url : 'url',
                     reader: {
                         type: 'array',
                         root: 'dataobj'
                     }
                }
            });

  4. #3
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    Bangalore, INDIA
    Posts
    51

    Default

    I need functionality for HTTP proxy in ExtJS 4..... In Ext 1.1, this functionality is under Ext.data.HttpProxy..... check out the documentation in the link below:
    http://dev.sencha.com/deploy/ext-1.1.1/docs/

    I didn't find it in Ext.data.proxy.Proxy in ExtJS 4
    any solution?

  5. #4
    Ext JS Premium Member dj's Avatar
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    573
    Answers
    1

    Default

    Ext.data.proxy.Ajax is the direct counterpart for Ext1.1's Ext.data.HTTPProxy.

    But the whole Data Package was refactored and improved a lot you will not find direct counterparts for the old methods.

    Some pointers:

    #getConnection() -> All Ext.data.proxy.Ajax objects use the Ext.Ajax object (one single Ext.data.Connection)

    #load() -> is now called #read() but you normally don't call this manually. The store calls it when necessary.


    Also have a look at the Data Package Guide: http://docs.sencha.com/ext-js/4-0/#!/guide/data this might shed some light on how things are done the ExtJS 4 way.
    Daniel Jagszent
    [email protected]??gsze?t.de <- convert to plain ASCII to get my email address

  6. #5
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    Bangalore, INDIA
    Posts
    51

    Default

    Thank you vasm and DJ .....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •