> Apparently this is much more difficult then it probably
> should be. But I can figure out how to make a true copy
> of DOM object with JavaScript, instead of just a copy
> of the pointer to the object.
>
> For Example:
>
> protoRow = (document.getElementById("One"));
>
> I would like protoRow to be a true deep copy of the
> current state of row "One", that I can use later on to
> create new rows, even though by that time the state of
> row one will have change significantly.
I think it's Node.cloneNode(true). The Boolean argument specifies the
creation of a deep copy. So, in your case, you could have this, I think:
protoRow = document.getElementById("One").cloneNode(true);
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4