1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Vote Rating
    0
    Answers
    4
    izak18 is on a distinguished road

      0  

    Default Unanswered: files structure, function, calling

    Unanswered: files structure, function, calling


    Hi everybody, I have a question, I'm new in ST2 but I made some aplications in ST1, I have a doubt ... in ST1, I used for example:

    index.html
    Code:
    <!doctype html><html>
    <head>
    <!-- CSS -->
    <link rel="stylesheet" href="resources/css/sencha-touch.css" type="text/css" />
    
    
    <!-- LIB -->
    <script type="text/javascript" src="resources/lib/sencha-touch.js"></script>
    
    
    <!-- APP -->
    <script type="text/javascript" src="src/views/loginViews/loginView.js"></script>
    <script type="text/javascript" src="src/index.js"></script>
    
    
    </head>
    <body>
    </body>
    </html>
    index.js
    Code:
    Ext.setup({    
        onReady: function() 
        {
    		loginView = new loginView();
        }
    });
    loginView.js
    Code:
    loginView = Ext.extend(Ext.Panel,{
    	fullscreen: true,
    	layout: 'fit',
    	......
    });
    
    
    Ext.reg('loginView', loginView);
    But that doesn't work in ST2. What do I have to change to have a similar structure in ST2?
    Thanks in advance.

  2. #2
    Sencha Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,695
    Vote Rating
    114
    Answers
    130
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    take a look at:
    http://localhost/sencha-touch-2.0.1....upgrade_1_to_2

    the other guides are also usefull to get you familiar with the latest version.
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  3. #3
    Sencha User bluehipy's Avatar
    Join Date
    Mar 2010
    Location
    Romania
    Posts
    606
    Vote Rating
    26
    Answers
    66
    bluehipy will become famous soon enough bluehipy will become famous soon enough

      0  

    Default


    http://docs.sencha.com/touch/2-0/#!/guide



    b
    ut it is a very very big difference between ST1 and ST2, take your time with the docs

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Vote Rating
    0
    Answers
    4
    izak18 is on a distinguished road

      0  

    Default


    Quote Originally Posted by bluehipy View Post
    http://docs.sencha.com/touch/2-0/#!/guide
    b
    ut it is a very very big difference between ST1 and ST2, take your time with the docs
    You' re soooo right !
    Thanks for your links guys!

Thread Participants: 2

Tags for this Thread