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 Stephen <st...@ilc.com> on 2003/05/09 23:51:50 UTC
ECMA function call from java
I'm am trying to figure out how to call a known function within the svg
document currently loaded. I'm using an applet and I would like to have
html forms interact with the svg doc in the applet.
Is there a way to do this?
Thanks,
Stephen.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: ECMA function call from java
Posted by Vincent Hardy <vi...@sun.com>.
Stephen,
I am not sure what you ask. If you get the scripting environment for the
SVG you loaded, you can call eval with a string that invokes a function
defined in the scripting environment. There is no issue invoking a
function that has been called previously by another eval() call.
Vincent.
Stephen wrote:
>Can I eval a function into the svg and then later call the function
>using eval?
>
>Thanks,
>Stephen.
>
>-----Original Message-----
>From: Vincent Hardy [mailto:vincent.hardy@sun.com]
>Sent: Monday, May 12, 2003 3:20 AM
>To: Batik Users
>Subject: Re: ECMA function call from java
>
>Hi Stephen,
>
>There is no connection between the browser's scripting engine and the
>Batik script engine. Therefore, my gut-feeling is that you'll have to do
>
>ECMAScript->Java
>
>See:
>http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/js_java
>.html
>
>and then use the Window object's eval function within your applet to
>invoke a specific ECMAScript in the context of the SVG document (this
>would invoke the Batik script engine).
>
>Vincent.
>
>Stephen wrote:
>
>
>
>>I'm am trying to figure out how to call a known function within the svg
>>document currently loaded. I'm using an applet and I would like to have
>>html forms interact with the svg doc in the applet.
>>Is there a way to do this?
>>
>>Thanks,
>>Stephen.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
>>
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
RE: ECMA function call from java
Posted by Stephen <st...@ilc.com>.
Can I eval a function into the svg and then later call the function
using eval?
Thanks,
Stephen.
-----Original Message-----
From: Vincent Hardy [mailto:vincent.hardy@sun.com]
Sent: Monday, May 12, 2003 3:20 AM
To: Batik Users
Subject: Re: ECMA function call from java
Hi Stephen,
There is no connection between the browser's scripting engine and the
Batik script engine. Therefore, my gut-feeling is that you'll have to do
ECMAScript->Java
See:
http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/js_java
.html
and then use the Window object's eval function within your applet to
invoke a specific ECMAScript in the context of the SVG document (this
would invoke the Batik script engine).
Vincent.
Stephen wrote:
>I'm am trying to figure out how to call a known function within the svg
>document currently loaded. I'm using an applet and I would like to have
>html forms interact with the svg doc in the applet.
>Is there a way to do this?
>
>Thanks,
>Stephen.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: ECMA function call from java
Posted by Vincent Hardy <vi...@sun.com>.
Hi Stephen,
There is no connection between the browser's scripting engine and the
Batik script engine. Therefore, my gut-feeling is that you'll have to do
ECMAScript->Java
See:
http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/js_java.html
and then use the Window object's eval function within your applet to
invoke a specific ECMAScript in the context of the SVG document (this
would invoke the Batik script engine).
Vincent.
Stephen wrote:
>I'm am trying to figure out how to call a known function within the svg
>document currently loaded. I'm using an applet and I would like to have
>html forms interact with the svg doc in the applet.
>Is there a way to do this?
>
>Thanks,
>Stephen.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org