Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   Clone Node Events (http://www.programmingforums.org/showthread.php?t=8550)

Eryk Feb 23rd, 2006 9:41 PM

Clone Node Events
 
Is there any way to keep an old node's events when duplicating it? I'm setting up a sort of weird practice page, but the events don't stay with it, meaning I can do it only one time.

Thanks guys.

DaWei Feb 24th, 2006 9:15 AM

Use an object prototype? I presume you mean 'event handlers', not events, which are transitory.

Eryk Feb 24th, 2006 2:15 PM

Quote:

Originally Posted by DaWei
Use an object prototype? I presume you mean 'event handlers', not events, which are transitory.

Yes, event handlers. What I did was just create a function to set it up to reassign the event handlers to the node, and all its element child nodes.

If you want to see what I made (for whatever reason):
http://digitalcs.net/tests/move_around.htm

I have yet to refine, basically just a rough draft.


All times are GMT -5. The time now is 11:19 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC