I have the following code for a dynamic linked list but am stuck. How do I make varCategory = selectedItem?
<SCRIPT LANGUAGE="JavaScript">
function fillOptions(selectedItem){
<% Dim varCategory
varCategory = "???"
rs.MoveFirst
Do While Not rs.EOF
If (rs("category_" = varCategory) Then
%>
document.selectedOption.optionList.options[document.selectedOption.optionList.options.length] = new
Option("<% Response.Write(rs("option_id_" & " " & rs"name_")%>", "<% Response.Write(rs("option_id_") %>"
<% End IF
rs.movenext
LOOP
%>
}
</SCRIPT>
Thanks,
Howard
Thanks,
Howard
<SCRIPT LANGUAGE="JavaScript">
function fillOptions(selectedItem){
<% Dim varCategory
varCategory = "???"
rs.MoveFirst
Do While Not rs.EOF
If (rs("category_" = varCategory) Then
%>
document.selectedOption.optionList.options[document.selectedOption.optionList.options.length] = new
Option("<% Response.Write(rs("option_id_" & " " & rs"name_")%>", "<% Response.Write(rs("option_id_") %>"
<% End IF
rs.movenext
LOOP
%>
}
</SCRIPT>
Thanks,
Howard
Thanks,
Howard