Bertalan Fodor wrote:
- Is there a way to access from a script the JSVGCanvas that displays
the SVG? I want to access the embedding HTML file by the following
route: SVG->subclass of JSVGCanvas->HTMLDocument
There isn't a real easy way, but you can access the 'Window Object'
which can give you access to the 'BridgeContext'. The BridgeContext
then has access to the bridge 'UserAgent' which is provided by the
method 'createUserAgent()' on the JSVGComponent. So you can
get to a class controlled by the Canvas.
var ua = getBridgeContext().getUserAgent();
Thank you much,
Bert
Also, please take the time to read the FAQ:
http://xml.apache.org/batik/faqs.html#faq-22
http://xml.apache.org/batik/faqs.html#faq-21
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]