I have a form which requires a date to be input. Here is the control:
<input type="text" name="StopDate" size="10" maxlength="10" onchange="ValidDate;">
here is the sub which is supposed to be called:
<% sub ValidDate()
if isdate(request.form("StopDate") = false then
ErrorText = "Invalid Date Entered"
msgbox errorText
else
msgbox "Success"
end if
end sub
%>
Nothing is happening when I enter data in the control (either success or failure). I can't find the syntax to use the onchange event. Also tried the onblur event with no success. Any suggestions?
Thanks much in advance!
<input type="text" name="StopDate" size="10" maxlength="10" onchange="ValidDate;">
here is the sub which is supposed to be called:
<% sub ValidDate()
if isdate(request.form("StopDate") = false then
ErrorText = "Invalid Date Entered"
msgbox errorText
else
msgbox "Success"
end if
end sub
%>
Nothing is happening when I enter data in the control (either success or failure). I can't find the syntax to use the onchange event. Also tried the onblur event with no success. Any suggestions?
Thanks much in advance!