
Client Side + Server Side Scripts
You can do this one of two ways:
1) Load all the employees into javscript arrays when you load the page and use
the 'new Option' constructor to populate the Employees select menu.
2) Use remote scripting to query the database and fill the select menu on the fly
using the 'new Option' constructor. You can find out more about remote scripting
at http://msdn.microsoft.com/scripting/
The only diffence is how you want to fill the array that has the options.
Here's a basic script:
var E1Array[2];
E1Array[0] = "Don Johnson";
E1Array[1] = "Phillip Micheal Thomas";
E1Array[2] = "Sandra Santiago";
document.form1.Employees.options.length = 0; //clear the select menu
for (i = 0; i <E1Array.length ;i++){
document.form1.Employees.option[i]=new Option(E1Array[i],E1Array[i],false,false);
Quote:
}
Have fun!
Erick