Skip Ribbon Commands
Skip to main content

Title

Robert Biggs

Body

Hmmm... I guess I should look into making my clone method automatically scan a node for any common event handlers, like onclick, onmouseover, etc., and then save and re-attach them on insert. However, since my insertAt method would know nothing of the saved event handlers, I guess I would need to create an object to store the handlers and have the related methods check for a flag to indicate that there are handlers to be attached to the inserted node. Yeah, pass the object holding the event handlers to the insert function as a parameter so it can attach them to the node after inserting it. Pretty straightforward. If no event hash is passed to insertAt, then it just inserts the node.

CommentUrl

 
Approval Status Approved
 

Attachments

Created at 8/6/2008 6:11 PM by System Account
Last modified at 8/6/2008 6:15 PM by Robert Biggs