|
-
comparing simple button instance name to XML child node
I want Montana data to appear when I click the state of Montana (and so on throughout the 50 states). Montana is the instance name of my simple button on the state of Montana.
Something's not quite right about this line of code:
if (pEvent.target == myXML.statename[i]) { ...then do something ...}
The code works fine if I say
if (pEvent.target == Montana)
Do I have to convert the myXML node value to text or something?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|