nadeemshafi9 Posted July 9, 2009 Share Posted July 9, 2009 im using extjs when i do some stuff i get Permission denied to access property 'dom' from a non-chrome context in firefox 3.5 not in ie everything works fine thogh any ideas ??? thanks Quote Link to comment Share on other sites More sharing options...
corbin Posted July 10, 2009 Share Posted July 10, 2009 Specific code? Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted July 10, 2009 Author Share Posted July 10, 2009 Specific code? a view panel set up to take stuff into its parts detailsPanel = { xtype: 'panel', id: 'details-panel', region: 'center', layout: 'card', margins: '2 5 5 2', activeItem: 0, items: [{ xtype: 'panel', id: 'default', html: '<p class="details-info">For Support please call <br><b>01189 881 270</b></p>' }] }; // Finally, build the main layout once all the pieces are ready. This is also a good // example of putting together a full-screen BorderLayout within a Viewport. new Ext.Viewport({ layout: 'border', title: 'Ext Layout Browser', autoScroll:true, items: [{ xtype: 'box', region: 'north', applyTo: 'header', height: 35 },{ layout: 'border', id: 'layout-browser', region:'west', border: false, split:true, margins: '2 0 5 5', width: 174, minSize: 100, maxSize: 500, items: [accordianPanel, detailsPanel] }, contentpanel ], renderTo: Ext.getBody() }); }); a part of a php array that builds the menu when it is fed in as JSON via ajax $m++; $json[$i]['children'][$m]['text'] = "Mannage Events"; $json[$i]['children'][$m]['help_id'] = "manageevents"; $json[$i]['children'][$m]['leaf'] = "true"; $json[$i]['children'][$m]['link'] = "http://www3.isrighthere.net/registrar/index/manageevents"; $json[$i]['children'][$m]['content_id'] = "myGridManageEvents"; $json[$i]['children'][$m]['priority'] = "1"; when you click a menu item the javascript looks at the menu js that was created via JSON AJAX from teh server php menu array, it uses the id's inside the array to either download and insert the data into the viewports parts or re-enable them eg set active again if they have already been downloaded. it does tehsame with the main cointent and the help content, the help content causes teh issue. // Assign the changeLayout function to be called on tree node click. treePanel.on('click', function(n){ var sn = this.selModel.selNode || {}; if(n.leaf && n.id != sn.id){ if(n.attributes.logout == "true"){ window.location = n.attributes.link; } else if(Ext.getCmp(n.attributes.content_id)){ Ext.getCmp('contentpanel').layout.setActiveItem(Ext.getCmp(n.attributes.content_id)); if(Ext.getCmp(n.attributes.help_id)){ Ext.getCmp('details-panel').layout.setActiveItem(Ext.getCmp(n.attributes.help_id)); } } else{ Ext.getCmp('contentpanel').getEl().mask('Loading...'); Ext.Ajax.request({ url: n.attributes.link, success: function(result, request){ eval(result.responseText); Ext.getCmp('contentpanel').getEl().unmask(); } }); } } }); this is how the help content is added whenm the javascript is AJAXED via the view and EVALED() when you click a menu item in the tree this is done once and afte rthat it only needs activation content = Ext.getCmp('details-panel'); if(!Ext.getCmp('eventsRegistrarHelpPanel')){ eventsRegistrarHelpPanel = new Ext.Panel({ id: 'eventsRegistrarHelpPanel', html: '{$help}' }); content.add(eventsRegistrarHelpPanel); content.doLayout(); content.layout.setActiveItem(Ext.getCmp('eventsRegistrarHelpPanel')); } else{ content.layout.setActiveItem(Ext.getCmp('eventsRegistrarHelpPanel')); } this is how the main content is added whenm the javascript is AJAXED via the view and EVALED() when you click a menu item in the tree this is done once and afte rthat it only needs activation //var content; var content = Ext.getCmp('contentpanel'); content.add(Ext.getCmp('myGridEventsRegistrar')); content.doLayout(); content.layout.setActiveItem(Ext.getCmp('myGridEventsRegistrar')); i appreciate any help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.