If I have the following code:
(not exact, just a rough idea)
<%
sub update()
Dim intstart, intend, intresult
intstart= *FILL IN THE BLANKS*
intend= *FILL IN THE BLANKS*
intresult = datediff("n",intstart, intend)
end sub
%>
<form name="summary">
<input name="start" type="text" value="12/1/2000 12:00 AM" onchange="call update()">
<input name="end" type="text" value="12/1/2000 12:15 AM" onchange="call update()">
<input type="text" value="<% =intresult %>">
</form>
It's the *FILL IN THE BLANKS* section that I can't figure out. I'm trying to assign the start and end values into the variables to compute the elapsed time.
How do I reference the form on the current page to obtain those values.
I can use the recordset data, but if change it, it's going to use the old value.
Do I have to have the form submit to the same page to compute the value, or is there a jscript or vbscript solution to this?
Jim
(not exact, just a rough idea)
<%
sub update()
Dim intstart, intend, intresult
intstart= *FILL IN THE BLANKS*
intend= *FILL IN THE BLANKS*
intresult = datediff("n",intstart, intend)
end sub
%>
<form name="summary">
<input name="start" type="text" value="12/1/2000 12:00 AM" onchange="call update()">
<input name="end" type="text" value="12/1/2000 12:15 AM" onchange="call update()">
<input type="text" value="<% =intresult %>">
</form>
It's the *FILL IN THE BLANKS* section that I can't figure out. I'm trying to assign the start and end values into the variables to compute the elapsed time.
How do I reference the form on the current page to obtain those values.
I can use the recordset data, but if change it, it's going to use the old value.
Do I have to have the form submit to the same page to compute the value, or is there a jscript or vbscript solution to this?
Jim