469,317 Members | 1,929 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

SVG with Java <script>

I have some Scaleable Vector Graphics (SVG) in which I need
to add some Java code (I guess via a <script>), which uses
the DOM to update attributes. I am thinking a XMLHttpRequest
will get me the latest data which I would use to update.

Can someone give me simple SVG, Java code or point me to a URL
where this is done. This nay be trivial: I have seen this done
with JavaScript and SVG, but I need to use Java. I don't know
which modifications I need, such as type="text/java" ?

Thanks for any pointers.

- Andrew M. Neiderer
US Army Research Lab
Oct 12 '05 #1
1 1285

Andrew Neiderer wrote:
Can someone give me simple SVG, Java code or point me to a URL
where this is done. This nay be trivial: I have seen this done
with JavaScript and SVG, but I need to use Java. I don't know
which modifications I need, such as type="text/java" ?


I am not sure I understand what you want to do but I assume it is highly
specific to a particular SVG viewer.
The Batik SVG viewer is implemented in Java and should allow Java
manipulation of SVG documents thus if you use that viewer then you could
start at
<http://xmlgraphics.apache.org/batik/>
where I think
<http://xml.apache.org/batik/javaScripting.html#Extension>
is what you are after.
There are also mailing list <http://xml.apache.org/batik/mailList.html>
dedicated to that viewer where you could find further help.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Madhav | last post: by
21 posts views Thread by hemant.singh | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.