RE: Dynamically creating layers in FireFox
"Moran Ben-David" <[email protected]> Thu, 23 Mar 2006 13:36:12 -0500
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <00cb01c64ea8$a93198f0$6401a8c0@short> |
What's the error you're getting? And can you attach your html? > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of Kenneth Chr. Nilsen > Sent: Thursday, March 23, 2006 1:32 PM > To: [email protected] > Subject: SV: [wdf-dom] Dynamically creating layers in FireFox > > Me too, but it would not work in FF which is the problem I'm struggling > with. > > mvh / regards, > Kenneth Chr. Nilsen > > > > -----Opprinnelig melding----- > > Fra: [email protected] [mailto:[email protected]] > > På vegne av Moran Ben-David > > Sendt: 23. mars 2006 19:29 > > Til: [email protected] > > Emne: RE: [wdf-dom] Dynamically creating layers in FireFox > > > > > > I vote for choice #1 > > > > > -----Original Message----- > > > From: [email protected] [mailto:[email protected]] On > > > Behalf Of Kenneth Chr. Nilsen > > > Sent: Thursday, March 23, 2006 1:19 PM > > > To: [email protected] > > > Subject: [wdf-dom] Dynamically creating layers in FireFox > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > Unsubscribe > > [email protected] > > > > List info > > http://www.quirksmode.org/dom/list.html > > Yahoo! Groups Links > > > > > > > > > > > > > > > > Unsubscribe > [email protected] > > List info > http://www.quirksmode.org/dom/list.html > Yahoo! Groups Links > > > > 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/