:: Forum >> Version 2 >>

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

More information on this topic is available in the documentation section: /aw.html.div/.

I'm trying the method detailed here -
/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

Post a reply:

Text:
Name:

Back to /aw.html.div/

Documentation:

Forum search