xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chrisbod <ch...@bodar.com>
Subject Re: Accessing the current SVG's Script Global Object
Date Mon, 25 Jan 2010 10:55:40 GMT

Thanks guys that was a great help. Unfortunately it was a bum idea as I
wanted to access the Javascript DOMDOcument for manipulation from the
browser containing the applet. Since I could manipulate the 'real' Java one
from the host page I thought (niavely) that the Rhino Wrapped document might
also be manipulable from the host (IE). Guess my hopes to make an applet
seamlessly back up non-native support for SVG or lack of ASV were over
optimistic since similating object.getSVGDocument would be non-trivial and
of course generally scripting the WindowObject from the host page would
require entirely different code than using ASV/Native/SVGWeb

Still I'll press ahead with the project nonetheless it's proving a nice
'deep-end' intro to Java...

Thanks again

chrisbod wrote:
> Okay I thought I'd cracked it using the getInterpreter method on the
> JSVGCanvas
> But the method doesn't seem to be available ....
> http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/swing/svg/JSVGComponent.html#getInterpreter(java.lang.String)
> Any ideas ! 
> Thanks
> chrisbod wrote:
>> Hi, I'm writing an Applet for a project and I need to access the default
>> Global object of the current SVG document. I've scoured the documentation
>> for how to get the default but I think I'm a little too much of a noob to
>> Java to work out where I can get a hold of it from (the RhinoInterpreter
>> seesm a good place to start) but again I can't find the default one!
>> Any help appreciated thanks
>> Christian

View this message in context: http://old.nabble.com/Accessing-the-current-SVG%27s-Script-Global-Object-tp27285395p27304952.html
Sent from the Batik - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message