1. #1
    Touch Premium Member
    Join Date
    Jul 2011
    Location
    Poland
    Posts
    60
    Vote Rating
    1
    michall is on a distinguished road

      0  

    Question Ext Direct reference

    Ext Direct reference


    Hello Everybody,

    is there any complete Ext.Direct reference with information such as how request look like for every component/store type, how answer should look like? I know about many implementation but where is reference?

    Thanks for any advice

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    The response doesn't really differ from a normal AJAX response.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Touch Premium Member
    Join Date
    Jul 2011
    Location
    Poland
    Posts
    60
    Vote Rating
    1
    michall is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    The response doesn't really differ from a normal AJAX response.
    Do You want to insult me with that anser or what? Seriously...

    Example of request:
    Code:
    {"action":"profile","method":"getLocationInfo","data":[{"uid":5}],"type":"rpc","tid":3}
    and replay:
    Code:
    [{"type":"rpc","tid":3,"action":"profile","method":"getLocationInfo","result":{"data":{"zip":"33776","street":"1234 Red Dog Rd.","state":"FL","city":"Seminole"},"success":true}}]
    Another one example of request:
    Code:
    {"action":"userService","method":"load","data":[{"page":1,"start":0,"limit":30,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":1}
    and replay:
    Code:
    [{"type":"rpc","tid":1,"action":"userService","method":"load","result":{"success":true,"total":98,"records":[{"id":"96","firstName":"Kelly","lastName":"Adkins","email":"dui.quis@id.org","city":"Venlo"},{"id":"98","firstName":"Seth","lastName":"Alexander","email":"Duis.ac@Curabiturdictum.com","city":"Haverhill"}]}}]
    Im looking for reference for this, structure of request and valid reply of server.

Tags for this Thread