Programming/
 Tools

      Oracle
      JavaScript
      C#

 Fun Stuff
      Music
      Martial Arts
      Robotech

 Other
      Main


DISCLAIMER
This disclaimer is intended to cover all software/freeware, and other various files which are downloadable through or from this site.
Joe Garrepy, isp, and web host can not be held responsible for any software downloaded from this site. All freeware is downloaded at your own risk. Software which is listed on this site is assumed to work properly, but may or may not have different effects on different computer systems. The same rules apply to these programs. Joe Garrepy assumes no responsibility for those unusual occurrences where software has adverse effects on users computer. Joe Garrepy does not warrant these programs/files, and as such, can offer no guidelines in which to use them. All freeware/software/files, trademarks, service marks, and copyrights are acknowledged as belonging to their owners. Any of these which the owner wishes to be removed will be done so immediately. By downloading any software or viewing pages in which software can be downloaded, you agree to be bound to this agreement.

JoeGarrepy.com Java Script Number, Date & Time Text Input Fields (Java Script versus VBScript examples)

The following are examples of how to make fields on a web page that force the user to input Dates or Numbers. For this I originally used VBScript since the two functions IsNumeric and IsDate (I’m a former VB 6.0 programmers so this was fairly easy). As I got into using Java Script I redesigned these functions in Java Script (which was fairly easy for numeric checking but a nightmare to check dates….). Since I work with Oracle most of the time (and the Oracle Web Application Server) the dates are returned in the Oracle format DD-MON-YYYY. Any other date format will be automatically converted to the Oracle Date format on the onBlur event (lostFocus event).

NOTE:  This page is still a WIP. I've gotten all this stuff to work in VBScript so now I'm converting it to JavaScript, so as I finish the JavaScript functionality will show up.

VBS Numeric Field This field Uses VBScript to force the user to enter a number in the field.
VBS Date Field This field uses VBScript to force the user to enter a date. Most date formats are accepted but all are converted to the Oracle date format of DD-MON-YYYY.
VBS Time Field This field Uses VBScript to force the user to enter a time in the field the return format is HH:MI AM.

VB Script Portion

VBS Html Portion
JavaScript Numeric Field This field Uses JavaScript to force the user to enter a number in the field.
JavaScript Date Field This field Uses JavaScript to force the user to enter a date in the field. Most date formats are accepted but all are converted to the Oracle date format of DD-MON-YYYY.

JavaScript Portion

JavaScript Html Portion


If you find any bugs or want to contact me I can be reached @ doughjoe77@hotmail.com.