> > Yes of course, this a big advantage of batik (in my opinion :-)). > > If you register a mouselistener on the jsvgcanvas then the > event object > > is the shape you clicked. Oh, I give you the method, to help you :-) > > (maybe this is not the best method, I don't know) > > You get the element on which you want add the listener (i.e. with > > getelementbyid) and then use addEventListener("click", > > listenerClassObject, false) on it. Of course the svg > element must have a > > onclick attribute (even empty) > > Actually the document does not need an 'onclick' attribute at > all, but in this case you need to tell the JSVGCanvas that the > document will be used as a dynamic document by calling > JSVGCanvas.setDocumentState(ALWAYS_DYNAMIC).
Ah ok, and before the 1.5 final release ? I think I've made this because it didn't work but it would be more sure that I'm wrong ;-) > It defaults to > AUTODETECT which looks for script elements and/or event attributes > to decide if the document should be treated as dynamic. Well, I've read this in the doc. Then I will remove these attributes from my document, as they are not needed and I use the dynamic part. O --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]