Hi Yannick,

Cyannick <[email protected]> wrote on 06/25/2009 01:19:07 PM:

> I read in Batik home page and in here about javascript support, but I 
could
> not fully grasp the extent of that compatibility.
> 
> To be able to fully use our javascripts, do we need to make some
> adaptations? (with Batik, or Rhino as I read)
> Or does JSVGCanvas automatically load external javascripts and use their
> functions? (provided that javascripts are loaded in SVG files)

   The JSVGCanvas will automatically load external javascripts and
run their functions (as appropriate).  You can test it standalone 
with the squiggle SVG Browser included in the standard Batik 
distribution.

> Can Batik (listeners I suppose) catch a modification to the SVG file 
made
> through a javascript function?

   Yes, Batik fully implements DOM level 2 Events, so you can register for
mutation events (in either Java or JavaScript).

Reply via email to