Christiana
Technical User
I have 2 recordsets. The one gets all the possible values for an item(TypeOfItem)-rs and the other gets the actual value (ItemValue)-rs2.
I present all the possible values of this item in a checkbox like this:
<%rs.MoveFirst
while (NOT rs.EOF)%>
<input type="Checkbox" name="ItemVal">
<%=rs(0)%><BR>
<%
rs.movenext
wend
%>
if the checkbox is the same as the real value
I want to check the checkbox.
(I use VBScript for server-side but for client-side I have to use JScript to be compatible with Netscape)
I've used something like this:
<body onload="ChangeCheck()">
<script Language="JScript">
<!--function ChangeCheck(){
if(window.document.Change.ItemVal==rs2("RealValue")
window.document.Change.ItemVal.checked=true;
}
But it seems I can't use the rs2 inside JScript.
I tried using server-side code but I have to refresh the page to see the check.
I've tried AddHeader "Refresh" "1" and META REFRESH but it keeps refreshing every 1 second. I just want to refresh it once.
Is there a solution to this?
Pls help.Thank you in advance
Christiana
I present all the possible values of this item in a checkbox like this:
<%rs.MoveFirst
while (NOT rs.EOF)%>
<input type="Checkbox" name="ItemVal">
<%=rs(0)%><BR>
<%
rs.movenext
wend
%>
if the checkbox is the same as the real value
I want to check the checkbox.
(I use VBScript for server-side but for client-side I have to use JScript to be compatible with Netscape)
I've used something like this:
<body onload="ChangeCheck()">
<script Language="JScript">
<!--function ChangeCheck(){
if(window.document.Change.ItemVal==rs2("RealValue")
window.document.Change.ItemVal.checked=true;
}
But it seems I can't use the rs2 inside JScript.
I tried using server-side code but I have to refresh the page to see the check.
I've tried AddHeader "Refresh" "1" and META REFRESH but it keeps refreshing every 1 second. I just want to refresh it once.
Is there a solution to this?
Pls help.Thank you in advance
Christiana