18 Apr 2012 7:32 AM #1
Answered: I can run Sencha 1.1 examples, but not 2.0
I have "installed" Sencha 1.1 and ran the sample applications with no problem. However, when doing the same with Sencha 2.0, all I get is an empty blank screen.
All I have done was unzipped the contents of sencha-touch-2.0.0-gpl.zip file into a "touch2" subfolder under my wwwroot folder, opened http://localhost/touch2 and then tried to run any of the samples. All I am getting is the phone "simulator" image with nothing in it.
Is there something I'm missing, resource or setup-wise?
Details: running IIS under Win7.
P.S. Also, following the Getting Started instructions to the letter for creating a new app leads to the same result: empty page.
It should work by just expanding the zip to a web accessible directory. Looking at the console, do you see any errors?
18 Apr 2012 7:33 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
It should work by just expanding the zip to a web accessible directory. Looking at the console, do you see any errors?Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
18 Apr 2012 7:51 AM #3
Hadn't looked, thanks for the suggestion.
GET http://localhost/touch2/examples/list/app.json 404 (Not Found)
Which is incorrect, I can see the file IS there. I tried IP address instead of localhost, same result.
Right underneath that error, another one probably as a result of the first:
Uncaught SyntaxError: Unexpected token <
18 Apr 2012 8:02 AM #4
Update: I managed to get the Getting Started application off the ground by watching the console and noticing it's trying to access sencha-touch-all-debug.js in the touch/builds folder but there was only sencha-touch-all-compat.js in there. I simply copied the compat file and renamed it debug, and the getting started app now works.
Still no luck with the samples.
18 Apr 2012 8:08 AM #5
By following the IIS error instructions, I figured .json was not mapped as an extension. Had to register it by using:
appcmd set config /sectiontaticContent /+[fileExtension='.json',mimeType='text/plain']
All is right with the world. Thank you for your suggestion to check out the console, it put me on the right track.