-
13 Dec 2009 7:49 AM #1
Help me call a method please.
Help me call a method please.
Below is a portion of code I have in the desktop example files. The problem is that this.createWindow1 does not execute.
Can someone tell me why it wont execute when I click on View alerts in the menu?
Thank you for looking.Code:MyDesktop.BogusMenuModule = Ext.extend(MyDesktop.RssFeedViewer, { init : function(){ this.launcher = { text: 'Alerting System', iconCls: 'bogus', handler: function() { return false; }, menu: { items:[{ text: 'View alerts', iconCls:'bogus', handler : this.createWindow1, scope: this } ] } // menu } // launcher this.createWindow1 = function(){ Ext.Msg.alert('called createWindow1');
-
13 Dec 2009 8:36 AM #2
My fault. Bad layout. Should have been.
...Code:init : function(){ this.launcher = { text: 'Alerts', iconCls:'bogus', handler: function() { Ext.Msg.alert('do nothing'); return false; }, scope: this, windowId:windowIndex, menu: { items:[{ text: 'View alerts', iconCls:'bogus', handler : this.createWindow1, scope: this } ] } // menu } // launcher }, // init createWindow1 : function(){ Ext.Msg.alert('called createWindow1');
-
14 Dec 2009 6:58 AM #3
"Bad layout! Bad dog! No biscuit!!"

It happens. Especially on Mondays.


Reply With Quote