Login Register

addChild

Working TabContainer from scratch?

I'm under a restriction to have an xhtml compliant design time page.
Therefore I have a single empty div as a placeholder for the dialog control I want to create.
I need tab containers inside this dialog and i need to create it all within javascript and get it in that div.
I have tried many different combinations of addChild and appendChild but my tab container never shows content. Sometimes it appears as a tiny box other time its a bar across the top of the area in firefox.

Has anyone gotten this done or seen this issue?
Any help would be greatly appreciated.

When is the best time to call addChild on layout containers?

I can't find this answer in the Book of Dojo. I'm nesting layout containers inside layout containers. When should I call addChild() to add it to the parent container?

Should I add them as I create them?....

var bc1 = new dijit.layout.BorderContainer(...);
var bc2 = new dijit.layout.BorderContainer(...);
bc1.addChild(bc2);
var bc3 = new dijit.layout.BorderContainer(...);
bc2.addChild(bc3);

...or should I create all of them first, and then add them together at the end?

var bc1 = new dijit.layout.BorderContainer(...);

Syndicate content