[Javascript] appendchild problem

Matias Woloski woloski at sion.com
Mon Nov 5 17:52:01 CST 2001


hi! I'm working with IE 5.5 and wanted to do this

div1.appendChild div2.removeNode(true)

This will remove the div2 with all its children (removeNode boolean
parameter in true). This returns the element removed, so I append it to the
div1. But when the appendchild executes, IE raises this error

	"Unexpected call to method or property access"

This is the html

<div id="div1">
</div>

<div id="div2">
<form id=...>
	blah bla
	<input ...
	...
</form>
</div>

Someone knows what is happening? Is there another way to do it?
thanks in advance,
Matias




More information about the Javascript mailing list