1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    4
    Vote Rating
    0
    iluvsencha is on a distinguished road

      0  

    Default Answered: I can run Sencha 1.1 examples, but not 2.0

    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.



    Thank you.

    P.S. Also, following the Getting Started instructions to the letter for creating a new app leads to the same result: empty page.

  2. It should work by just expanding the zip to a web accessible directory. Looking at the console, do you see any errors?

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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 Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.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.

  4. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    4
    Vote Rating
    0
    iluvsencha is on a distinguished road

      0  

    Default


    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 <

  5. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    4
    Vote Rating
    0
    iluvsencha is on a distinguished road

      0  

    Default


    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.


    Thanks.

  6. #5
    Sencha User
    Join Date
    Apr 2012
    Posts
    4
    Vote Rating
    0
    iluvsencha is on a distinguished road

      0  

    Default


    Got it

    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.

Thread Participants: 1

Tags for this Thread