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 / February 2005



Tip: Looking for answers? Try searching our database.

getting at values in combo box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
deepfloyd - 24 Feb 2005 21:23 GMT
I have a combo box component being populated from the xml data component. in
the xml there is only two cild nodes. I have php script grabbing this info from
my database and writting the xml file. all this works just fine and popluated
the cb. <category>    <name>samples</name>    <id>1</id> </category>  I have
set the re-arrange fileds in my parameters to 'label=name;data=id'   How do I
get at the 'data=id' in the combo box and assign that id# to a vraiable in
which I can pass on as a parameter to a function?  I need to assign the values
selected in the CB to a variable?
TurnerMan - 25 Feb 2005 21:57 GMT
You've already assigned the data from the combobox as 'id' while the 'name' is
being displayed, right?  All you have to do is bind the 'id' to another object,
such as a text window component.  To use is as a variable, I would think you
would need to define it first.  Here's an example that I think may be close:  

var MyNumber:Integer = [myCombobox.selectedIndex.id];
 
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.