On Tue, 2007-05-29 at 22:42 +0200, Robert Lummert wrote:
> Hi Ruben,
> 
> the most simple way would possibly be to use the events defined in the
> SVG spec:
>   http://www.w3.org/TR/SVG11/script.html#EventAttributes
> and assign the call of an ECMAScript function, you define in the SVG itself.
> 
> If you need to handle the event in java, use the Interpreter
> 
> svgCanvas.getUpdateManager().getBridgeContext()
> .getInterpreter("text/ecmascript").bindObject(String name, Object object);
> 
> to assign your respective java method (object) to an ECMScript variable
> (name) and then call that method from the ECMAScript function thats
> triggered by the event (like 'onmouseover="myECMAScriptFun();"').

Hi Robert!! That worked like a charm!!

A very very big THANK YOU! :)

Ruben


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to