H
hifchan
I'd like to attach an event to a group of possible controls, each
event's handling function might exepect different parameters. By
learning IE's attachEvent, I found no way to pass parameters.
My situation is I'm using XML to dynamically generate the event
function, inside of XML data there is a attribute specify what
associates with a particular control and parameter(s). Doing things
like this,
objElement.attachEvent("onclick", eventFunc)
I'm completely out of wood.
There are some discussions suggesting to detect srcElement, but that's
AFTER the function is created.
event's handling function might exepect different parameters. By
learning IE's attachEvent, I found no way to pass parameters.
My situation is I'm using XML to dynamically generate the event
function, inside of XML data there is a attribute specify what
associates with a particular control and parameter(s). Doing things
like this,
objElement.attachEvent("onclick", eventFunc)
I'm completely out of wood.
There are some discussions suggesting to detect srcElement, but that's
AFTER the function is created.