Hi,
I have a drop down list box, which after the user selects a value reloads the page. However, it doesn't seem to retain the value seleted by the user it reverts back to the original value.
Can anyone tell me how the new value can be retained?
The drop down box code is:
<select size="1" name="dropdown_menu" onchange="reloadParent(this.value)">
<%
Dim i
For i = 1 to 12
Response.Write "<option value='"&i&"'"
If cInt(oRS("formnum"
) = i Then Response.Write " selected"
Response.Write ">" & i & "</option>"
Next
%>
</select>
and the reload function looks like this:
function reloadParent(load){
if (load !== true) {
window.focus();
window.location.reload(false);
}
else {
};
}
Thanks
Julie
I have a drop down list box, which after the user selects a value reloads the page. However, it doesn't seem to retain the value seleted by the user it reverts back to the original value.
Can anyone tell me how the new value can be retained?
The drop down box code is:
<select size="1" name="dropdown_menu" onchange="reloadParent(this.value)">
<%
Dim i
For i = 1 to 12
Response.Write "<option value='"&i&"'"
If cInt(oRS("formnum"
Response.Write ">" & i & "</option>"
Next
%>
</select>
and the reload function looks like this:
function reloadParent(load){
if (load !== true) {
window.focus();
window.location.reload(false);
}
else {
};
}
Thanks
Julie