-
11 Aug 2010 9:21 PM #1
[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
See this URL : http://Code:
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
-
12 Aug 2010 9:20 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Do you mean you cannot decode the returned value properly?
-
12 Aug 2010 8:47 PM #3
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!
-
13 Aug 2010 7:43 AM #4
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.
-
13 Aug 2010 8:07 AM #5
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!
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Question to Cards of Kitchen Sink/ Events Example
By msinn in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 30 Jul 2010, 12:53 PM -
[FIXED-99] Rotating iPhone breaks kitchen sink example.
By DustinHES in forum Sencha Touch 1.x: BugsReplies: 11Last Post: 29 Jul 2010, 9:37 AM -
[.8 -- iPhone] Kitchen Sink example - All ssyptes of layout issues
By jay@moduscreate.com in forum Sencha Touch 1.x: BugsReplies: 1Last Post: 19 May 2010, 9:58 AM -
have tried all but throwing the kitchen sink. scroll bars are in the way and grid a
By Mthor in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 May 2009, 1:14 PM -
AJAX XML Data Grid Demo
By tromansky in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 27 Jul 2007, 10:00 AM


Reply With Quote