1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    10
    Vote Rating
    0
    monkeyvu is on a distinguished road

      0  

    Default JsonReader issue

    JsonReader issue


    This is the response from the server.

    {success:true, eventdata:{Id:'924',ResourceId:'2109462',Title:'CA',StartDate:'2010-12-04 07:45:00',EndDate:'2010-12-04 11:00:00',color:'#ccffff'}}

    Then I use:

    1. var res = reader.readResponse(action, response);
    2. this.fireEvent("write", this, action, res.data, res, rs, options);
    3. callback.call(scope, res.data, res, true);

    I have the problem with the first line of code (readResponse). Do you know what the problem with my response data from server?

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Posts
    10
    Vote Rating
    0
    monkeyvu is on a distinguished road

      0  

    Default JSonReader JSonStore

    JSonReader JSonStore


    I got the exception : root undefined response
    When I define the JsonStore, I already declare root: eventdata.

  3. #3
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,657
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    don't forget it's a string:
    Code:
    root: 'eventdata'
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

Similar Threads

  1. Replies: 1
    Last Post: 13 Dec 2010, 10:47 AM
  2. JsonReader issue
    By hikeeba! in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 26 Aug 2008, 12:32 PM
  3. JsonReader Mapping Issue
    By sfwalter in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 18 Feb 2008, 4:43 AM
  4. JsonReader / Store issue with json string
    By fallenrayne in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 13 Nov 2007, 2:59 PM
  5. Issue with MemoryProxy and Jsonreader
    By Harsha in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 10 Sep 2007, 7:04 AM

Thread Participants: 1

Tags for this Thread