There are lots of people here who can explain this.
 
Generally, SVG and JavaScript are both running in a browser on a client.  SVG 
communicates with JavaScript via events.  JavaScript updates the DOM, which is 
the in-memory representation of the SVG.  See this link for a working example 
of JavaScript/SVG interaction:
http://www.w3.org/TR/SVG11/script.html#EventHandling
 
The Java Servlets run on a web server that supports servlets (e.g., Tomcat).  
The client JavaScript that is embedded in the SVG can communicate with a 
servlet via getURL() and postURL() calls.  For example, the client can call 
getURL(url, callback) to execute the doGet() function in a servlet.  In Tomcat, 
the url is mapped to the servlet via the web.xml file.  The doGet() function on 
the server returns a result to the client, which causes the callback function 
on the client to be called.  The callback function parses the results and 
updates the DOM, causing the display to be updated.
 
getURL() and postURL() are supported by the Adobe SVG and Batik viewers, but 
not all viewers.  
 
I don't know of a link that explains in detail with examples the 
servlet-JavaScript interaction (maybe someone else can provide this).  If you 
know how to do servlets on your web server, then getting them to work with 
client JavaScript and SVG isn't difficult.
 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]



-----
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/
 



Reply via email to