> I'm not sure I understand what you're saying. I have tried it the
> following ways:
> if ("COUNTY_NAM" == "WINNEBAGO"){
> if ("{COUNTY_NAM}" == "WINNEBAGO"){
Both of these are identical in operation to
if ("AA" == "BB"){
or
if ("somerandomstringofcharacters" == "someothercharacters"){
so of course will never ever be true.
> if ({COUNTY_NAM} == "WINNEBAGO"){
> //*i get a syntax error on this try above*
Yes.
I'm not too sure without looking it up, but I think
{COUNTY_NAM} will try to create an anonymous javascript object - the
{ } part - and assign it some property based on the value of a
variable called 'COUNTY_NAM'. If that were to work, it would then
try to equate the object with a string, which would never match either
as the object and the string are of differing types.
Yup , dogears = quotes - sorry, Olde Farte terminology.
The link you've given doesn't do anything for me on click in FF2, I
think because
http://meltwater.isgs.uiuc.edu/ArcGIS/rest/services/coal_mines_test/MapServer
is not resolveable by DNS for me.
Nor does it contain any effort to have an if-clause as you are
describing, so I have no idea where you are trying to run the if-
clause or what you are trying to get hold of using the strange
{COUNTY_NAM} term.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.