1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    1
    Vote Rating
    0
    rsyhanes86 is on a distinguished road

      0  

    Default Unanswered: Button Menu Issue (ExtJs 4.1.1)

    Unanswered: Button Menu Issue (ExtJs 4.1.1)


    Hi, I got some trouble when rendering a button menu using 4.1.1 version, This is the code of button:{ text:'Mis Aplicaciones', menu:{ loader:{ autoLoad:true, url: '../ac/execute', renderer: 'component', params:{ route:'ac_getuserapps' } } }}As you can see I load items of menu from serverside wich is perfectly done. I even have inspected the menu object and menu items are inside. But, when I try to dropdown the menu clicking the button I get this error:"Uncaught TypeError: Cannot read property 'dom' of null ext-all-debug.js:26402"And menu never shows up.Hoping for some help!!! http://www.sencha.com/forum/images/smilies/17.gif

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,918
    Answers
    655
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    This seems to work:

    text.txt
    Menu Item
    Code:
    Ext.onReady(function(){
    
    	Ext.create('Ext.Button', {
    	    text: 'Click me',
    	    renderTo: Ext.getBody(),
    	    loader: {
    	        url: 'text.txt',
    	        autoLoad: true
    	    },
    	    handler: function() {
    	        alert('You clicked the button!');
    	    }
    	});
    
    });
    Scott

Thread Participants: 1

Tags for this Thread

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