Results 1 to 2 of 2

Thread: Can yuo help for dummy?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1382
      0  

    Default

    Instead of using an array, I would go full fledge JSON
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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
  •