RE: OT JavaScript Object Copy

2003-07-31 Thread Dave Watts
> 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 protoR

RE: OT JavaScript Object Copy

2003-07-31 Thread Haggerty, Mike
Learned this myself recently. http://developer.irt.org/script/878.htm Essentially, there is no way to do what you are trying to do. What other developers do is loop around all of the object's properties and copy them to the new object. M -Original Message- From: Ian Skinner [mailto:[E

RE: OT JavaScript Object Copy

2003-07-31 Thread Ian Skinner
-- Ian Skinner Web Programmer BloodSource Sacramento, CA -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 11:21 AM To: CF-Talk Subject: RE: OT JavaScript Object Copy > Apparently this is much more difficult then it probably >