setContent method for AW.HTML.DIV object - v2
I'm hoping to use AW to build a page with some nested DIVs with controls (buttons, inputs etc..)
I seem to have trouble with what I'm sure is a basic feature of AW, namely setting the content of the AW.HTML.DIV object.
the following doesn't work for some reason...
var outer_container = new AW.HTML.DIV;
outer_container.setId("outer_div");
var button1 = new AW.UI.Button;
button1.setId("button1");
button1.setControlText("customize grid");
outer_container.setContent("object",button1)
document.write(outer_container);
When I view rendered source in the browser I just have:
<body>
<script>
...
</script>
</body>
Using setContent with text e.g. setContent("text", "this is the out div") works OK.
I've seen several posts that describe using innerHTML to set the HTML contents of a DIV, but i was hoping to do the whole page with AW objects and using them to build nested DIVs etc..
I'm sure I'm doing something trivially wrong?
Will
I seem to have trouble with what I'm sure is a basic feature of AW, namely setting the content of the AW.HTML.DIV object.
the following doesn't work for some reason...
var outer_container = new AW.HTML.DIV;
outer_container.setId("outer_div");
var button1 = new AW.UI.Button;
button1.setId("button1");
button1.setControlText("customize grid");
outer_container.setContent("object",button1)
document.write(outer_container);
When I view rendered source in the browser I just have:
<body>
<script>
...
</script>
</body>
Using setContent with text e.g. setContent("text", "this is the out div") works OK.
I've seen several posts that describe using innerHTML to set the HTML contents of a DIV, but i was hoping to do the whole page with AW objects and using them to build nested DIVs etc..
I'm sure I'm doing something trivially wrong?
Will
Will
October 17,