Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
    bstras21 is an unknown quantity at this point

      0  

    Default Unanswered: activeItem not updating panel

    Unanswered: activeItem not updating panel


    Shouldn't this code go the second panel? It's not

    Code:
    var viewport = Ext.create('Ext.Panel', {
                fullscreen: true,
                id:'mainViewport',
                layout: 'card',
                activeItem: 1,
                items: [{
                     xtype: 'LoginForm'
                     },{
                     xtype: 'MainPunchApp'
                }],
                
            });

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Answers
    93
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    That should work. It is working for me:

    Code:
    Ext.setup({    
        onReady: function() {
            Ext.Viewport.add({
                layout: 'card',
                fullscreen: true,
                activeItem: 1,
                items: [
                    { html: 'First card' },
                    { html: 'Second card' }
                ]
            });
        }
    });
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
    bstras21 is an unknown quantity at this point

      0  

    Default Here is my full code that does not work

    Here is my full code that does not work


    I changed xtype to html to see if that would help but that didn't

    HTML Code:
    Ext.application({
        name: 'testApp',
        controllers: ['test1, test2'],
        launch: function() {
            var viewport = Ext.create('Ext.Panel', {
                fullscreen: true,
                id:'mainViewport',
                layout: 'card',
                activeItem: 1,
                items: [
                    {html: 'LoginForm'},
                    {html: 'MainPunchApp'}
                ],
                
            });
        }
         
    });

  4. #4
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Answers
    93
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Did you try my exact code? What version are you running?
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  5. #5
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
    bstras21 is an unknown quantity at this point

      0  

    Default sencha-touch-2.0.0-pr1

    sencha-touch-2.0.0-pr1


    I am new to touch2 and the way I have it setup is how the examples show to setup an application. Not real sure how to implement your code into this application. Did you happen to try the code the way I have it setup?

    Thanks for all your help!

  6. #6
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Answers
    93
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Checkout PR2, and let me know if it works then. I think there was an issue with activeItem in PR1.

    http://www.sencha.com/forum/announcement.php?f=90&a=17
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  7. #7
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
    bstras21 is an unknown quantity at this point

      0  

    Default Still doesn't work

    Still doesn't work


    Thanks, I didn't have pr2 so I downloaded it and implemented it, I cleared all caches and I still have the same issue. Is it possible that I don't have something set right in the code? It seems pretty basic?

    Again, thank you

  8. #8
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Answers
    93
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Your code works for me. I just had to remove the "controllers" config, as I don't have those controllers defined.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  9. #9
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
    bstras21 is an unknown quantity at this point

      0  

    Default Wierd

    Wierd


    I removed my controllers just to see if it worked and I got the same result. I wonder if it has to do with the js file I am pointing to, I am using debug-with-comments, I also noticed I I try to use sencha-touch.js I get a bunch of errors:

    index.html
    Code:
    <!DOCTYPE html>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title id="page-title">ttFramework</title>
    
        <link rel="stylesheet" type="text/css" href="js_lib/sencha-touch/resources/css/sencha-touch.css">
        <link rel="stylesheet" type="text/css" href="css/style.css">
        
        <script type="text/javascript" src="js_lib/sencha-touch/sencha-touch-all-debug-w-comments.js"></script>
        <script type="text/javascript" src="app/app.js"></script>
    </head>
    <body>
    
    </body>
    </html>
    errors if I switch to sencha-touch.js
    Code:
    Resource interpreted as Other but transferred with MIME type undefined.
    Resource interpreted as Other but transferred with MIME type undefined.
    Resource interpreted as Other but transferred with MIME type undefined.
    Resource interpreted as Other but transferred with MIME type undefined.
    [COLOR=red !important]XTemplate.js:1Uncaught SyntaxError: Unexpected token <[/COLOR]
    [COLOR=red !important]Panel.js:1Uncaught SyntaxError: Unexpected token <[/COLOR]
    [COLOR=red !important]Button.js:1Uncaught SyntaxError: Unexpected token <[/COLOR]
    [COLOR=red !important]List.js:1Uncaught SyntaxError: Unexpected token <[/COLOR]
    Resource interpreted as Other but transferred with MIME type undefined.
    Resource interpreted as Other but transferred with MIME type undefined.
    [COLOR=red !important]Store.js:1Uncaught SyntaxError: Unexpected token :[/COLOR]
    [COLOR=red !important]Application.js:1Uncaught SyntaxError: Unexpected token <[/COLOR]
    [COLOR=red !important]Dispatcher.js:1Uncaught SyntaxError: Unexpected token <[/COLOR]
    Resource interpreted as Other but transferred with MIME type undefined.
    [COLOR=red !important]Dom.js:1Uncaught SyntaxError: Unexpected token <
    [/COLOR]

  10. #10
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Answers
    93
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    You should use sencha-touch-all or sencha-touch-all-debug.

    I have archived an example of your code here: http://cl.ly/BxsC
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Thread Participants: 1

Tags for this Thread