Re: replaceNode
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: replaceNode

From: Anand <Anand.1s1ra1@no-mx.forums.yourdomain.com.au>
Date: Tue Jul 12 2005 - 09:48:06 CEST

Hello Rob,
The method I happened to implement finally does work for both IE
and Mozilla. Mozilla/Firefox however showed slight spacing problem
(extra line and not starting from right most end as other links) when
they were being replaced. Thas is the only reason I had different codes
for these two browsers. I wouldn't be surprised if I am doing them by
myself for some reason unknown to me yet.

IE did not refuse to add rows in table element. I could add a row
by using insertRow to a table object (got by getElementById(mytable)).
In addition to adding a row, I add a cell in the row again by using
myrow.insertCell. Then the Cell's innerHTML is changed to my string.
This worked fine for me.

As I mentioned earlier, replaceChild after createElement only
managed to give me 'space' instead of newnode. I am still unaway why
that would happen!!!

I also read in another web forum that using innerHTML for TRs and TDs
is not supported by IE.

Anand

-- 
Anand
------------------------------------------------------------------------
Anand's Profile: http://www.highdots.com/forums/member.php?userid=72
View this thread: http://www.highdots.com/forums/showthread.php?t=1746467
Received on Tue Oct 18 02:54:43 2005