You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Tanul <sm...@gmail.com> on 2009/11/24 19:55:07 UTC

Dynamic addition of scripts to SVG in Batik

Hi,

My application is using JSVGCanvas to render a SVG Document

I am trying to update the ecma script in the SVG document at runtime. i.e.
the content of the <script></script> tag is updated during the course of
execution of the application.

Even after updating/adding the <script> tag, the updated script is not
available for execution.
Just to mention that I load the SVG Document into SVG Canvas just once
initially and there are no reloads during updation of the <script> tag.

Is it possible to update the scripts dynamically using batik? 

Thanks in Advance,
Tanul
-- 
View this message in context: http://old.nabble.com/Dynamic-addition-of-scripts-to-SVG-in-Batik-tp26499923p26499923.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


Re: Dynamic addition of scripts to SVG in Batik

Posted by th...@kodak.com.
Hi Tanul,

Tanul <sm...@gmail.com> wrote on 11/24/2009 01:55:07 PM:

> I am trying to update the ecma script in the SVG document at runtime. 
i.e.
> the content of the <script></script> tag is updated during the course of
> execution of the application.
> 
> Even after updating/adding the <script> tag, the updated script is not
> available for execution.

    I'm not sure we support 'updating' but if you add a new script
element Batik should execute the code it contains.

> Is it possible to update the scripts dynamically using batik? 

    I have done it in the past.  If you can produce a stand alone
example of the problem it might help figure out what the problem is.