views:

58

answers:

1

My Documents are a mixture of XML and HTML Tags. where HTML tags are pulled from xhtml namespace and mine are from various namspaces. I wanna take user interaction events from XML Nodes of my Document. I First tried <do:landingTime xhtml:onclick="fnc">20:48:29.45</do:landingTime> with no Luck. But <xhtml:span onclick="fnc"> works. So is there any solution/tricks/hacks/backdoor to take events from my xml Nodes.

+2  A: 

You need to add the click events using Javascript and accept answers to your questions.

SLaks
Can you give a bit more explanation ??
You can use Javascript to attach event handlers by calling `attachEvent` / `addEventListener`. The simplest way to do this is using [jQuery](http://jquery.com).
SLaks
But jQuery doesn't seem to work if I pull html tags from xhtml namespace
You need to escape the `:`, like this: `$('ns\\:tag')`
SLaks