« Return to Thread: Migrating SVG/AJAX to Batik?

Re: Migrating SVG/AJAX to Batik?

by Cyannick :: Rate this Message:

Reply to Author | View in Thread

Thanks for your reply.

thomas.deweese wrote:
Hi Yannick,

Cyannick <yannick.chong@gmail.com> 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).

 « Return to Thread: Migrating SVG/AJAX to Batik?