Nov 18, 2010, 2:06 PM
[CLOSED] Desktop - Microsoft JScript runtime error: Object expected
Hello,
I recently updated the libraries and when I run Desktop controller it throws an JScript runtime error I checked the Ext.Net.Examples and noticed that is also throwing JScript runtime error.
If you can please take a look.
Error:
Microsoft JScript runtime error: Object expected
I recently updated the libraries and when I run Desktop controller it throws an JScript runtime error I checked the Ext.Net.Examples and noticed that is also throwing JScript runtime error.
If you can please take a look.
Error:
Microsoft JScript runtime error: Object expected
new Ext.app.App({id:"MyDesktop",getModules:function(){return [new Ext.app.Module({id:"DesktopModule1",windowID:"winCustomer",launcher:{id:"Launcher1",xtype:"menuitem",iconCls:"icon-add",text:"Add Customer"},autoRun:true}),new Ext.app.Module({id:"DesktopModule2",windowID:"winCompany",launcher:{id:"Launcher2",xtype:"menuitem",iconCls:"icon-lorry",text:"Company Info"},autoRun:true}),new Ext.app.Module({id:"DesktopModule3",windowID:"winBrowser",launcher:{id:"Launcher3",xtype:"menuitem",iconCls:"icon-world",text:"Web Browser"}})];},getStartConfig:function(){return {width:400,toolsWidth:227,height:400,title:"Start Menu",toolItems:[{id:"ctl03",xtype:"menuitem",iconCls:"icon-wrench",text:"Settings",listeners:{click:{fn:function(item,e){Ext.Msg.alert('Message', 'Settings Clicked');}}}},{id:"ctl05",xtype:"menuitem",iconCls:"icon-disconnect",text:"Logout",directEvents:{click:{fn:function(item,e){var params=arguments;Ext.net.DirectEvent.confirmRequest({eventMask:{showMask:true,msg:"Good Bye...",minDelay:1000},control:this});},delay:20}}},{id:"ctl07",xtype:"menuseparator"},{id:"ctl09",xtype:"componentmenuitem",component:{id:"QuickSearchGrid",columnPlugins:[0],xtype:"netgrid",height:275,width:210,autoExpandColumn:"SearchItem",loadMask:{showMask:true},sm:this.ctl10=new Ext.grid.RowSelectionModel({proxyId:"ctl10",singleSelect:true}),store:QuickSearchStore,selectionMemory:false,cm:this.ctl11=new Ext.grid.ColumnModel({proxyId:"ctl11",columns:[new Ext.net.CommandColumn({hideable:false,width:30,commands:[{xtype:"tbbutton",iconCls:"icon-note"}]}),{dataIndex:"SearchItem",header:"SearchItem",id:"SearchItem"}]})},shift:false},{id:"ctl14",xtype:"componentmenuitem",component:{id:"QuickSearchFilter",xtype:"nettrigger",width:210,triggersConfig:[{iconCls:"x-form-search-trigger"},{hideTrigger:true,iconCls:"x-form-clear-trigger"}],listeners:{triggerclick:{fn:function(item,trigger,index,tag,e){if (index === 1) { trigger.hide(); this.setValue(''); } else { this.triggers[1].show(); } QuickSearchGrid.reload();}}}},componentElement:"wrap",target:"QuickSearchFilter",shift:false}],items:[{id:"MenuItem1",xtype:"menuitem",hideOnClick:false,iconCls:"icon-folder",text:"All",menu:{id:"Menu1",xtype:"menu",items:[{id:"ctl17",iconCls:"icon-add",text:"Add Customer",listeners:{click:{fn:function(item,e){winCustomer.show();}}}},{id:"ctl19",iconCls:"icon-lorry",text:"Company Info",listeners:{click:{fn:function(item,e){winCompany.show();}}}},{id:"ctl21",iconCls:"icon-world",text:"Web Browser",listeners:{click:{fn:function(item,e){winBrowser.show();}}}},{id:"ctl23",iconCls:"icon-world",text:"Create dynamic",listeners:{click:{fn:function(item,e){createDynamicWindow(MyDesktop);}}}}]}},{id:"ctl27",xtype:"menuseparator"}]};},getStartButtonConfig:function(){return {iconCls:"start-button",text:"Start"};},backgroundColor:"Black",shortcutTextColor:"White",wallpaper:"desktop.jpg",listeners:{shortcutclick:{fn:function(id,e){var d=MyDesktop.getDesktop(); if(id == 'scTile'){d.tile();}else if(id == 'scCascade'){d.cascade();}}}}})
Last edited by Daniil; Nov 18, 2010 at 5:13 PM.
Reason: Please use [CODE] tags, [CLOSED]