:: Forum >>

Placing an AW.UI.Grid in an AW.HTML.DIV

I'm trying the method detailed here -
http://www.activewidgets.com/javascript.forum.7978.2/setcontent-method-for-aw-html.html
but I get an error in FF.

That is
var div = new AW.HTML.DIV
var obj = new AW.UI.Grid
...
div.element().innerHTML = obj
document.write(div)

Has this changed or am I doing something wrong?
Anthony
Wednesday, April 2, 2008
You should have it in the different order -

document.write(div)
div.element().innerHTML = obj

otherwise until you write the div into the page div.element() will return null.
Alex (ActiveWidgets)
Wednesday, April 2, 2008
Hi Alex, thanks! I just tested it and it works like a charm.
Anthony
Wednesday, April 2, 2008

This topic is archived.


Back to support forum

Forum search