Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Client side date validation before submit runs

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,91
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Client side date validation before submit runs
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Client side date validation before submit runs - 6/3/2001 11:48:49 AM   
  countryfun

 

Posts: 12
Score: 0
Joined: 5/31/2001
From: USA
Status: offline
I can figure out how to validate text boxes before the form is
submitted to my database.

I need to know how to validate a date before it is submitted to my
database because there will be a "type mismatch" as the field in the
database is a date field.
 
 
Post #: 1
 
 Re: Client side date validation before submit runs - 6/3/2001 11:50:02 AM   
  daydreamer

 

Posts: 19
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
Use the isDate function.

i.e.
if not isDate(form.field.value) then
display error message
end if

(in reply to countryfun)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Client side date validation before submit runs Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts