3.0.0

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
April 2,
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)
April 2,
Hi Alex, thanks! I just tested it and it works like a charm.
Anthony
April 2,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.