Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    2
    Vote Rating
    0
    Marvel1234 is on a distinguished road

      0  

    Default [FIXED] Ajax example in kitchen sink demo's data card not working (correctly)?

    [FIXED] Ajax example in kitchen sink demo's data card not working (correctly)?


    Sencha Touch version tested:
    • 0.9 rev ____
    • only default ext-all.css
    • custom css (include details)



    Platform tested against:
    • iOS 3.x
    • iOS 4
    • Android 2.1
    • Android 2.2

    Description:
    • The ajax button in the kitchen sink demo seems to be broken
    Test Case:

    Code:
    
    
    See this URL : http://



    Steps to reproduce the problem:
    • Click on the ajax button on the data

    The result that was expected:
    • Output the json test file not as text

    The result that occurs instead:
    • Json file is outputted as text

    Screenshot or Video:

    • []

    Debugging already done:
    • none

    Possible fix:
    • surround the tags in the json file with quotes

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Do you mean you cannot decode the returned value properly?

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,164
    Vote Rating
    674
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    You'll see in the example it just attempts to write the response text, it never tries to decode it.

    Regardless, it's probably a good idea to quote the JSON so it doesn't confuse people, so I'll do that now.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #4
    Ext User
    Join Date
    Aug 2010
    Posts
    2
    Vote Rating
    0
    Marvel1234 is on a distinguished road

      0  

    Default


    Hi,

    yeah, if you use the test.json file in the reader it gives an exception stating that it can't decode it. Using quotes fixes this problem.

  5. #5
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,164
    Vote Rating
    674
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Right, but the example itself never tries to decode it, so that's fine. Regardless, I've modified it to quote the property names to prevent any confusion.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Similar Threads

  1. Question to Cards of Kitchen Sink/ Events Example
    By msinn in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 30 Jul 2010, 12:53 PM
  2. [FIXED-99] Rotating iPhone breaks kitchen sink example.
    By DustinHES in forum Sencha Touch 1.x: Bugs
    Replies: 11
    Last Post: 29 Jul 2010, 9:37 AM
  3. [.8 -- iPhone] Kitchen Sink example - All ssyptes of layout issues
    By jay@moduscreate.com in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 19 May 2010, 9:58 AM
  4. Replies: 2
    Last Post: 28 May 2009, 1:14 PM
  5. AJAX XML Data Grid Demo
    By tromansky in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 27 Jul 2007, 10:00 AM

Thread Participants: 2