Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / May 2008



Tip: Looking for answers? Try searching our database.

matching event.target to XML node value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Laura MS - 13 May 2008 16:34 GMT
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?
Laura MS - 13 May 2008 18:59 GMT
Solution:
if (pEvent.target.name == myXML.statename[i])
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.