Hi Nathan, [email protected] wrote on 10/17/2005 03:19:39 PM:
> I am using batik squiggle as svg viewer.Is it possible to call a > java function or get the value of a function in a java class > (implemented in Batik) from with in an svg document. Yes. Batik uses the Mozilla Rhino JavaScript interpreter, they have a good page on how to use this: http://www.mozilla.org/rhino/ScriptingJava.html Also using the Batik API's you can bind a Java object to a global variable in the script environment. This is done with the 'bindObject' method on the batik.script.Interpreter, interface. You can get the EcmaScript interpreter from the BridgeContext (getInterpreter). ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

