Alessandro Di Bella wrote:
You are right again, that was the parent tree i wrongly assumed that it was the same as the event dispatch.
So how sure are you that the event handler isn't called? Did you put a print statement or something in it?
What happens if you load the following and run it?
<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:myns="........" onclick="printTree('Baz',evt.target)">
<script type="text/ecmascript"> <![CDATA[ function printTree(title, e) { while (e) { System.err.println(""+title+": " + e); e = e.parentNode; } } ]]></script>
<defs> <symbol id="ASYMBOL"> <g> <rect width="100" height="62.5" ry="5" x="+3" y="+3" /> <rect id="EVENT_GENERATOR" width="100" height="62.5" ry="5"/> </g> </symbol> </defs>
<g id="LISTENING_NODE" myns:type="mytype" onclick="printTree('Bar',evt.target)"> <use onclick="printTree('Foo',evt.target)" xlink:href="#ASYMBOL" x="5" y="2" width="622" height="394"/> </g> </svg>
From what i understand then, I'm on a dead end and I still need to solve my problem. I think that I will persue the other route with the GVT tree. Even if it is not trivial It should work. Can you give me some hints please?
This is _really_ the wrong way to go, and I don't have the time to help you figure out how to do it. I'm willing to help debug this problem on the off chance that you have found a bug.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]