Forums
This topic is locked
dynamic dropdown
Posted 27 Jan 2003 15:05:56
1
has voted
27 Jan 2003 15:05:56 wendy owens posted:
In Ultradev, I have a dropdown box that is dynamically created using data from a table.I want to populate a textbox depending upon what I select from this dropdown box (this information will change depending upon what is selected from the dropdown box).
How do I do this? Any help is greatly appreciated.
Thanks
Replies
Replied 27 Jan 2003 22:17:55
27 Jan 2003 22:17:55 Marja Ribbers-de Vroed replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
In Ultradev, I have a dropdown box that is dynamically created using data from a table.
I want to populate a textbox depending upon what I select from this dropdown box (this information will change depending upon what is selected from the dropdown box).
How do I do this? Any help is greatly appreciated.
Thanks
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
You would have to write a custom JavaScript function to populate the textbox. This custom function should then be triggered on the onChange event for the dropdown box:
<pre id=code><font face=courier size=2 id=code>
<select name="yourList" style="width:275" onChange="yourFunction();">
...
</select>
</font id=code></pre id=code>
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
In Ultradev, I have a dropdown box that is dynamically created using data from a table.
I want to populate a textbox depending upon what I select from this dropdown box (this information will change depending upon what is selected from the dropdown box).
How do I do this? Any help is greatly appreciated.
Thanks
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
You would have to write a custom JavaScript function to populate the textbox. This custom function should then be triggered on the onChange event for the dropdown box:
<pre id=code><font face=courier size=2 id=code>
<select name="yourList" style="width:275" onChange="yourFunction();">
...
</select>
</font id=code></pre id=code>
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Replied 28 Jan 2003 14:09:06
28 Jan 2003 14:09:06 wendy owens replied:
Thanks. You wouldn't happen to know where I could copy this javascript to use in my application? I am fairly new to the programming game and don't have a lot of experience in Javascript.
Thanks
Thanks
Replied 31 Jan 2003 16:33:09
31 Jan 2003 16:33:09 Rafi Mellado replied:
I don't know any code to do exactly what you're trying to do, but there is a macromedia tutorial here:
www.macromedia.com/support/ultradev/ts/documents/client_dynamic_listbox.htm
which explains how to do what you want to do, only with 2 dropdown menus instead of a dropdown menu and a textfield, but I'm sure its only a matter of changing a bit of code to soothe your needs.
At least it should give you a few ideas.
DarkKave
www.marmenor.com
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Thanks. You wouldn't happen to know where I could copy this javascript to use in my application? I am fairly new to the programming game and don't have a lot of experience in Javascript.
Thanks
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
"If it weren't for the last minute, nothing would get done."
www.macromedia.com/support/ultradev/ts/documents/client_dynamic_listbox.htm
which explains how to do what you want to do, only with 2 dropdown menus instead of a dropdown menu and a textfield, but I'm sure its only a matter of changing a bit of code to soothe your needs.
At least it should give you a few ideas.
DarkKave
www.marmenor.com
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Thanks. You wouldn't happen to know where I could copy this javascript to use in my application? I am fairly new to the programming game and don't have a lot of experience in Javascript.
Thanks
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
"If it weren't for the last minute, nothing would get done."