Results 1 to 4 of 4

Thread: which file to use sencha-touch.js or sencha-touch-debug.js or sencha-touch-all.js or

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default which file to use sencha-touch.js or sencha-touch-debug.js or sencha-touch-all.js or

    I am trying a basic demo app with below code...

    Code:
    Ext.application({
        name : 'MyApp',
        
        launch : function () {
            var MyPanel = Ext.create("Ext.Panel", {              
                html : "Test APP..."     
            });
            
            Ext.Viewport.add(MyPanel);
        } 
    });
    In index.html, if i use

    Code:
     script src="lib/sencha-touch.js" type="text/javascript" (or) script src="lib/sencha-touch-debug.js" type="text/javascript"
    Nothing is rendered on browser screen(Chrome 18.0) In index.html, if i use
    Code:
      script src="lib/sencha-touch-all.js" type="text/javascript" (or)  script src="lib/sencha-touch-all-debug.js" type="text/javascript"
    Content is rendered on browser screen(Chrome 18.0) Which JS file should we include in HTML file...? In one of Forum(http://www.sencha.com/forum/showthre...encha-touch.js) Jacky Nguyen advised to use "sencha-touch.js" for Production and "sencha-touch-debug.js" for development... Unfortunately usage of these JS file not working for my code...... Whats going wrong............???? Is there any problem with my code or any problem with JS files...
    Last edited by mitchellsimoens; 23 Apr 2012 at 6:44 AM. Reason: format code

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,327
    Vote Rating
    1297
      0  

    Default

    Did you require Ext.Panel to be loaded?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default

    I am Sorry Mitchell, I am a newbie to Sencha touch.
    Could you please explain me what is meant by the context "require Ext.Panel to be loaded".....?
    Is that adding a Panel to Viewport is what you mean or something else.....?

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,327
    Vote Rating
    1297
      0  

    Default

    There are many ways to handle file dependancies. This guide may be of some help http://docs.sencha.com/touch/2-0/#!/...c_dependencies
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •