The example works for me, with a minor change (see #2 below).  There are two
things to note:

1) Make sure your SVG document actually has a clickable element with the id
"elt-id".  For instance:

-----------------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";>

<svg xmlns="http://www.w3.org/2000/svg"; width="100%" height="100%"
id="testSVG">
    <rect id="elt-id" width="100%" height="100%" fill="green"/>
</svg>
-----------------------------------------------------

2) Make sure you specify a valid URL in place of "doc.svg" on line 52.  For
instance, if you want to use the file "C:\MyData\doc.svg" in your local
filesystem, you should specify the URL "file:///C:/MyData/doc.svg".  

Sam


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:mrochat@;cadmos.ch] 
Sent: None
To: [EMAIL PROTECTED]
Subject: JSVGCanvas events

As nobody is answering do I have to get to the the conclusion that the
example
on :

http://xml.apache.org/batik/javaScripting.html

does not work ? This would mean that it is not possible to get events from
the
JSVGCanvas...? This is a real problem for me, as I absolutely need this to
work
for my thesis project. PLEASE HELP if you can.

Marc Rochat
Engineering School of Geneva


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

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

Reply via email to