JSVGCanvas setSVGDocument doesn't load scripts... but setURI does?

Michael Ford <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
I am generating this simple SVG document in code, with some basic onClick() scripting logic. When I call setSVGDocument with the document I have created,  the visuals load fine but when I click on anything I get an "Unknown Language: text/ecmascript" error.

If I take this exact same SVGDocument, output it to a file, and then load it into the canvas using setURI, the scripts execute without error.

I I am not attempting to edit the SVGDocument from my java code after it is loaded, only through the javascript. JSVGCanvas.ALWAYS_DYNAMIC is set before I start loading.

I am using the Batik 1.7 release and Rhino 1.7RC2, also on maven.  JDK 1.6 on OS X.

I have included the image I am trying to load.

I can obviously do the simple input handling I need to in java, but I was hoping to make the SVG aspect of this application reusable in our web apps directly.

Thanks,

-Michael Ford
Spidasoftware


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
oneCircle.svg (image/svg+xml, 1.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.