This may be ugly but it does work.
att.item(1).value is the class of the polygon but I could not find a better way
to reference
it. chaine is url that will be posted to my server with the information on
which polygons
were selected and unselected.
Thanks for the suggestion.
Russ
function changeColor(evt) {
objet=evt.target;
att=objet.attributes;
var state = document.getElementById(att.item(0).value);
if (att.item(1).value == "selected")
{
att.item(1).value = "notselected";
oldcolor = att.item(3).value;
var style = state.style;
style.setProperty("fill",oldcolor, "");
chaine = chaine+'unfield='+ att.item(0).value +"&";
}
else
{
att.item(1).value = "selected";
var style = state.style;
style.setProperty("fill", "red", "");
chaine = chaine+'field='+ att.item(0).value +"&";
}}
------------------------------------
-----
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/