Jump to content

Permission denied to access property 'dom' from a non-chrome context ??????


nadeemshafi9

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.