Hi everybody,
I have made a simple HTC (called boxbe.htc), that fires some events:
<EVENT NAME="onboxdragstart" ID="boxdragstart" />
<EVENT NAME="onboxdragend" ID="boxdragend" />
....
<SCRIPT LANGUAGE="jscript">
...
var oEvent = createEventObject();
oEvent.srcElement=element;
boxdragstart.fire(oEvent);
...
Then I use it in HTML page:
...
<style>
.boxbe {behavior:url(box.htc); }
</style>
...
<table id=outerTable onboxdragstart="doSomething();" >
<tr><td >
<table class="boxbe" id=innerTable >
...
</table>
</td></tr>
</table>
If behavior script fires an event, I can handle it in "innerTable" (of
course if I put onboxdragstart.... into the table tag), but I can't trap
the event in "outerTable", so "doSomethig()" function never runs.
So simply: I can trap the "behavior events" in element that contains that
behavior, but I can't trap them let say in its container.
I understood that "behavior events" also bubble up to BODY element, so I
have no explanation for that situation.
Do you have any idea how to trap "behavior events" by other element that
doesn't have the behavior assigned?
Thanks in advance
Radek