xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: How to send event from embedded Javascript to Java
Date Fri, 09 Nov 2007 02:41:54 GMT
Hi Adam,

ACE91 <adamlego20@hotmail.com> wrote on 11/08/2007 06:34:25 PM:

> Tried this, and it didn't quite work. I think I'm not doing something 
> Here's an example of what happens:
> If I do this in my Java app...
> Interpreter i = BridgeContext.getInterpreter("text/ecmascript");

   Where do you get BridgeContext from?
Are you getting it from the canvas after the document is loaded?

> ...then it works. So apparently, the script block in the SVG file is not
> using the same interpreter as the one that I'm using in my Java program. 
> do I get the interpreter that the SVG file's <script> block is using?

   I suspect you are creating a 'disconnected' BridgeContext instance
rather than using the one associated with the document loaded in the 
View raw message