Hello user group,
I am making an user interface for traffic control and it uses SVG/batik for
the graphical part. The "background" of the interface is a (svg) map and
I dynamically add all kind of symbols to this map. The symbols are (obvious)
stored in external svg-files and I dynamically add these symbols to the canvas
with the use element. My main question is why a specific event works while
the other won't. Due to specific requirements I am using the latest build
( I am using multiImage/subImage elements etc.)
The following piece of java code shows how I create the element and add the
eventlistener:
Element element = doc.createElementNS(XGCManager.getSvgNS(),"use");
element.setAttributeNS(XGCManager.getXlinkNS(),"xlink:href", symbol);
element.setAttribute("id", id);
element.setAttribute("x", x);
element.setAttribute("y", y);
(Nothing special I think ...)
Next I have tried the following two pieces of code:
((EventTarget)element).addEventListener("click",
svgCanvas.getTooltipHandler(),false);
- or -
((EventTarget)element).addEventListener("mouseover",
svgCanvas.getTooltipHandler(),false);
Under all circumstances the "click" event works, but under no circumstances
can I get an event from the "mouseover". I have the application working with
the "click" event, but the user would like to have the mouseover....
Is there something wrong with my approach, or has something changed
substantially
in svg1.2?
Leo van den Berg
P.S. I have tried it with different simple and complex symbols, but the
behaviour
is everytime the same.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]