Results 1 to 2 of 2

Thread: Can yuo help for dummy?

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Can yuo help for dummy?

    I'm just full zero in ExtJS, But I cant find any simpy sampe to receive some array from server to JS.
    I had sniffered HTTP responce from page:
    [["0","1"],["1","2"],["2","3"],["3","4"],["4","5"]]
    I can't understand, why any attempts to modify all samples are failing :-(
    code is like this:
    var record= Ext.data.Record.create([{name:'id_units',type:'str'},{name:'name_units',type:'str'}]);
    var StructStoreReader = new Ext.data.ArrayReader({id:0},record);
    var StructStore = new Ext.data.ArrayStore({
    id:'StructStoreReader',
    proxy: new Ext.data.HttpProxy(
    {url: '../data/effect-report-data.php' , method: 'POST',disableCaching: true, success: function(r,o){ }})
    , baseParams: {QWhat: "plantstruct"}
    , reader: StructStoreReader
    });
    StructStore.load();

    'baseParams' are using to generate upper responce.
    All tricks resulted in StructStores.items emmpty collection.
    I have no minds to do more.

    Do somebody have any enthusiasm to help?
    Novice with one-day experience in ExtJS, when correcting third-party code.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,416
    Vote Rating
    1269
      0  

    Default

    Instead of using an array, I would go full fledge JSON
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

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

Tags for this Thread

Posting Permissions

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