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.

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    1
    Vote Rating
    0
    kaiser.soze is on a distinguished road

      0  

    Default setActiveItem is not a functiion

    setActiveItem is not a functiion


    REQUIRED INFORMATION

    Ext version tested:
    • Sencha Touch 2.0PR3
    Browser versions tested against:
    • Safari 5
    Description:The result that was expected:
    • no errors
    Test Case:
    Code:
        
    <!DOCTYPE html> 
    <html> 
        <head> 
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
            <script src="sencha-touch-all-debug.js" type="text/javascript"></script> 
            <link href="sencha-touch.css" rel="stylesheet" type="text/css" />         
            <script type="text/javascript"> 
    Ext.application({
            name: 'Sencha',
            launch: function() {            
                
                 var panel = Ext.create('Ext.Panel', {
                    layout: 'card',
                    items: [
                        {
                            html: "First Item"
                        },
                        {
                            html: "Second Item"
                        },
                        {
                            html: "Third Item"
                        },
                        {
                            html: "Fourth Item"
                        }
                    ]
                });
                panel.getLayout().setActiveItem(1);                                        
            }
        });
    
            </script> 
        </head> 
        <body></body> 
    </html>

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,521
    Vote Rating
    814
    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


    remove the getLayout() part and just do it on the panel:

    Code:
    panel.setActiveItem(1);
    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.

Thread Participants: 1