Trouble creating compound controls
I am trying ot create a control that is made up of other controls and I thought I would start simple and work my way up. This is what I have but when I write the control to the page, I just get the main DIV with no 'internal' controls. I know I am missing something simple, what is it?
Here is my test control:
All assistance would be appreciated.
Here is my test control:
AW.HTML.DispatchTool = AW.System.Template.subclass();
AW.HTML.DispatchTool.create = function()
{
var obj = this.prototype;
obj.setTag('DIV');
obj.defineTemplate("DispatchHeader", new AW.System.Template);
with (obj.getTemplate("DispatchHeader"))
{
setTag('DIV');
setStyle("height", 50);
setStyle("position", "absolute");
setStyle("width", "100%");
setStyle("background-color", "yellow");
}
obj.defineTemplate("AuxTop", new AW.System.Template);
obj.defineTemplate("GridBody", new AW.System.Template);
obj.defineTemplate("AuxBottom", new AW.System.Template);
obj.defineTemplate("TabBody", new AW.System.Template);
obj.defineTemplate("Tabs", new AW.System.Template);
obj.setContent(function() {
return
this.getDispatchHeaderTemplate() +
this.getAuxTopTemplate() +
this.getGridBodyTemplate() +
this.getAuxBottomTemplate() +
this.getTabBodyTemplate() +
this.getTabsTemplate();
})
}
AW.HTML.DispatchTool.create();
All assistance would be appreciated.
Jim Hunter
October 12,