W3C home > Mailing lists > Public > www-svg@w3.org > February 2003

SVG HTML search by ElementID

From: David Keltner <davidkeltner@msn.com>
Date: Tue, 04 Feb 2003 20:53:52 +0000
To: www-svg@w3.org
Message-ID: <F6heECAhJMZIxUBLm8J00029a0c@hotmail.com>

Using embedded SVG and HTML I have a problem of ignorance..
how to access "JoeBlow" from "Area1"

I have the following code in SVG
<g id="Area1" style="display:none;">
<g id="JoeBlow" style="display:none;">
(data)
</g>
<g id="SamBabba" style="display:none;">
(more data)
</g>
</g>

I use the following HTML
	document.SVGEmbed.getSVGDocument().getElementById("Area1").getStyle().setProperty("display", 
"inline");

which gives me all of Area1 which is "JoeBlow" and "SamBabba" but I want to 
access only "JoeBlow" after a performing a search...

This code fails me(though I don't get any errors..just nothing)
document.SVGEmbed.getSVGDocument().getElementById("JoeBlow").getStyle().setProperty("display", 
"inline");

I hope someone might guide out of this darkness of confusion...

Thanks

David

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail
Received on Tuesday, 4 February 2003 16:28:30 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:24 GMT