Alec,
Alec Smecher wrote:
> I've got another scripting-related problem I hope someone can give me
> some pointers on...
>
> I'm faking dynamic SVG (poorly!) by redrawing every time I change the
> DOM as described in a previous email (a week or two ago).
>
> Everything's OK, except that I'm having a little trouble with some
> functions defined in the document being reloaded (using Rhino). The
> first time the document loads, everything's fine - The second time it
> loads, the functions stop working.
>
> Is it possible that the functions are remaining in the Rhino global
> object and the second time around something goes slightly crackers when
> trying to re-bind the same functions?
>
> I'm using Batik 1.0.
Yes, it seems that what you've done lead to reloading the functions in
the global object. However it seems to work fine with me (for example
you can load twice batikMusic.svg without encountering any problem).
That's why I would be interested in having the example that produces the
problem you encounter.
If you want a quick and dirty way of fixing that problem, you can change
the InterpreterPool you are using between two reloads (on the
BridgeContext). In that case the global object will be changed and the
problem should disaparead.
Whithout more information on the exact problem (SVG file + traces...) it
is difficult for me to give you additional advices.
Hope this helps,
--
Christophe
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]