-
9 Feb 2007 6:05 AM #1
borderlayout problem
borderlayout problem
I try to make a borderlayout. I have a working example. But in another place I get the following error and I really don't know the answer.
Code:Layout = function(){ return { init: function(){ var layout = new YAHOO.ext.BorderLayout(document.body, { hideOnLayout: true, layoutheader: { split:false, initialSize: 80 } }); layout.add('header', new YAHOO.ext.ContentPanel('layoutheader', {fitToFrame:true})); } } }(); YAHOO.ext.EventManager.onDocumentReady(Layout.init, Layout, true);Does someone know what goes wrong here?Code:this.regions[target] has no properties add("header", Object closable=false loaded=false active=false)yui-ext-debug.js (line 12343) init()layout.js (line 11) namespace()utilities.js (line 2) fireDocReady()yui-ext-debug.js (line 3386) CustomEvent(DOMContentLoaded )event-min.js (line 1) [Break on this error] return this.regions[target].add(panel);
-
9 Feb 2007 6:34 AM #2
Where in the documentation and examples do you see "header" as the name of a Region?
-
9 Feb 2007 6:40 AM #3
Damn, I thought I could give it any name I want. Not very smart.
Can you give me a hint where I can find that in the documentation? Just to solve such stupid mistakes by my self the next time.
-
9 Feb 2007 7:05 AM #4
Go to the main page. Jack's blog has a lot of worked examples. And the "DOCUMENTATION" link works, and has examples.
Similar Threads
-
BorderLayout : Z-index problem
By saasira in forum Ext 3.x: Help & DiscussionReplies: 9Last Post: 10 Mar 2010, 8:34 AM -
Possible BorderLayout problem?
By salix in forum Ext 1.x: BugsReplies: 11Last Post: 26 Mar 2007, 10:13 AM -
BorderLayout Problem.
By fsuguinness in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 20 Mar 2007, 6:09 AM -
Newbie problem with BorderLayout
By dotnetCarpenter in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 10 Mar 2007, 10:25 AM -
Newbie with a problem with BorderLayout and Tabs
By ElGranAzul in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 24 Nov 2006, 11:29 AM


Reply With Quote