Dynamically creating layers in FireFox

"Kenneth Chr. Nilsen" <[email protected]> Thu, 23 Mar 2006 19:19:25 +0100
Newsgroups gmane.comp.web.dom.wdf
Organization Optisoft
Message-ID <002301c64ea6$50bba410$0a01a8c0@winhell>
Ok,

now I have tried three approaches to dynamically create a layer (DIV) in
FireFox.
It works fine with IE and Opera, but I'm struggling to get it to work with
FF.

I have so far used the metods such as:

1)
        pElement = document.getElementById(parentID);
        var newLay = document.createElement("DIV");
	  ...
        pElement.appendChild(newLay);

2)
	var newLay = '<div id='+layID+' style="position: absolute;'
	+'left:'+x+";"
	...
	+'></div>'
	document.body.insertAdjacentHTML("BeforeEnd",newLay);

3)
	var newLay = document.layers[parentID]=new Layer(w);

Any suggestions on how to dynamically create a layer in FF will be highly
appriciated.


mvh / regards, 
Kenneth Chr. Nilsen



Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/