Hybrid View

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    84
    Vote Rating
    0
    nofx is on a distinguished road

      0  

    Default (basic) button not working?

    (basic) button not working?


    Hi, i'm using the following view to display a toolbaar with a button in it. But nothing happends when i press the button... I don't even see the button image change from button-up to button-down. Anyone any idea why?

    Code:
    app.views.test = Ext.extend(Ext.Panel, {
        fullscreen: true,
        
        dockedItems: [
            {
                dock : 'top',
                xtype: 'toolbar',
                title:'Standard Titlebar'
            },
            {
                dock : 'top',
                xtype: 'toolbar',
                ui   : 'light',
                items: [
                    {
                        text: 'Test Button',
    					handler: function() {
    						alert('aaa'); //Not working...
    					}
                    }
                ]
            }
        ],
        
        html: 'Testing'
    });
    

  2. #2
    Sencha User
    Join Date
    Jun 2009
    Posts
    84
    Vote Rating
    0
    nofx is on a distinguished road

      0  

    Default


    Nevermind, i figured it out. It's because i used 'app' in the namespace. Just read that i had to change it.

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    16
    Vote Rating
    0
    ITS Telco is on a distinguished road

      0  

    Default Works perfect !

    Works perfect !


    i have no problems.
    i touch the buttons and the message box with aaaa appear.
    how does you tested it ?

  4. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    16
    Vote Rating
    0
    ITS Telco is on a distinguished road

      0  

    Default namespaces

    namespaces


    just insert

    Ext.ns('app.views');

  5. #5
    Sencha User
    Join Date
    Jun 2009
    Posts
    84
    Vote Rating
    0
    nofx is on a distinguished road

      0  

    Default


    It worked for me once, then i tried to do the alert in a controller instead of the view itself. That didn't seem to work. So i put the alert back in the handler of the view and now i have the same problem again... My button wont react when i press it...

    Anyone any idea whats going on...???

    BTW. what is "Ext.ns('app.views');" and where do it put it..?

  6. #6
    Sencha User
    Join Date
    Jun 2009
    Posts
    84
    Vote Rating
    0
    nofx is on a distinguished road

      0  

    Default


    Ok, i just found the REAL problem. When my phone is connected to the USB cable, then for some reason the handlers won't react to button presses. When i disconnect my phone from the USB cable everything works fine.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi