View Full Version : Access Layout (globally)

31 May 2007, 4:53 AM

I defined GlobalLayout in one js-file and initialis it with the init function:

GlobalLayout = function(){
var layout;
return {
init : function(){
layout = new Ext.BorderLayout(document.body, {

I have another js-file where I handle different stuff in a big Project js Object, mainly stuff which works inside the "Center" Screen of the BorderLayout. I load this contents via Ext.get('divwhatever')

But, now I want to change for example contents of the 'west' region in the layout. How do I access this? How can I set the "title" of a ContentPanel?

How can I access the GlobalLayout Object inside the Project Object?

GlobalLayout.doafunction() does not work :( it's kind of not global altought I can see it in the dom, ... I don't get it!?!

Thanks for help