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 josh <jo...@speakeasy.net> on 2003/03/20 06:40:35 UTC
Dynamic DOM updates
Hi!
I've been crawling through the mail archives and I can't seem to find an
answer to my question. Please forgive me if this has been asked a
hojillion times already:
I'm trying to dynamically control the SVG document through the DOM
API. For instance, say I have a JTextField and when the user types in an
id, I do this:
String id = textfield.getText();
Element elt = svgdoc.getElementById(id);
if(elt != null){
elt.setAttributeNS(svgns, "visibility", "hidden");
}
//...
There's no errors, but I never see the display update. I'm using the 1.5b4
release.
Do DOM events not trigger display updates still? I found a message that
said so, but it was dated 2001, so I figured maybe some progress had
occurred in that area =)
Thanks again for any help,
- josh
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org