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

11 Aug 2010, 9:21 PM
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


The ajax button in the kitchen sink demo seems to be broken

Test Case:

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:


Possible fix:

surround the tags in the json file with quotes

Jamie Avins
12 Aug 2010, 9:20 AM
Do you mean you cannot decode the returned value properly?

12 Aug 2010, 8:47 PM
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.

13 Aug 2010, 7:43 AM

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.

13 Aug 2010, 8:07 AM
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.