[Javascript] copying dynamic object

Scott Reynen scott at randomchaos.com
Sat Aug 5 13:38:53 CDT 2006


On Aug 5, 2006, at 5:04 AM, suresh kumar wrote:

>          //oDis.appendChild(this.picObj);       /*i dont want this  
> method*/
>           /*i tried this 2 methods but its not working*/
>         oDis=picObj;
>         oDis=picObj.cloneNode(true);

If I'm understanding your question, I think you want something like  
this:

oDis.parentNode.replaceChild( picObj , oDis );

Peace,
Scott




More information about the Javascript mailing list