renu
03-17-2003, 09:34 PM
hi,
can anybody help me with a simple example of creating a dynamic select menu ?
can anybody help me with a simple example of creating a dynamic select menu ?
|
Click to See Complete Forum and Search --> : dynamic select renu 03-17-2003, 09:34 PM hi, can anybody help me with a simple example of creating a dynamic select menu ? pyro 03-17-2003, 09:55 PM What do you mean by "dynamic select menu" ? jdavia 03-17-2003, 09:58 PM Originally posted by renu hi, can anybody help me with a simple example of creating a dynamic select menu ? Add your own locations. I made dashes to avoid opening an unknown site <form> <SELECT NAME="list"><OPTION VALUE="JavaScript: noWhere()"> <!-- relative paths to the page you want to link to. --> <VALUE=Select <OPTION VALUE="http://www.---.com/xyx.htm">XYX <OPTION VALUE="http://www.---.com/yyy.htm">YYY <OPTION VALUE="http://www.---.com/zzz.htm">ZZZ </SELECT> <INPUT TYPE=BUTTON VALUE="Go!" onClick="parent.location= this.form.list.options[this.form.list.selectedIndex].value"> </form> renu 03-18-2003, 01:05 AM By dynamic select I mean that options are not hard coded but are generated every time based on some condition. i.e one time options may be 1, 2, 3 and next time there might be 4 or more options. I will have options in an array so basically I need a loop to generate <option > tag. jdavia 03-18-2003, 01:25 AM Originally posted by renu By dynamic select I mean that options are not hard coded but are generated every time based on some condition. i.e one time options may be 1, 2, 3 and next time there might be 4 or more options. I will have options in an array so basically I need a loop to generate <option > tag. You might find it here http://www.xs4all.nl/~ppk/js/options.html webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |