PC Review


Reply
Thread Tools Rate Thread

Auto-Form Validation using Javascript

 
 
skc
Guest
Posts: n/a
 
      8th Jan 2004
I have a FP2000 Form, which I want validated on the fly
using Javascript validation, so the script records the
keystrokes (or focus) and notifies the user of any
breaches:

Here are the 3 items I want validated:

1. Currency amount to 2 dp without the £ sign:
E.g. OK => 800.36
BREACH => 800.362 or 800.2655 or abcd

2. Date to be entered dd/mm/yy with "/":
e.g. OK => 22/01/04
BREACH => 222/01/2004 or anything else

3. Time to be entered hh:mm:
E.g. OK => 11:33
BREACH => 222:33, 44:11 etc..

Please can someone provide me with links to free
Javascript for me to do the above.

Thanks.

skc
 
Reply With Quote
 
 
 
 
Andrew Murray
Guest
Posts: n/a
 
      8th Jan 2004
Try www.hotscripts.com or http://javascript.internet.com or search google for
"validation scripts".

One suggestion though, you can use Frontpage itself and use the form-validation
feature(s) It will probably do the check(s) you've outlined below, such as
checking time/date formats or that a value is in currency format (for whatever
country you're from - UK? seeing you don't have decimal currency (eg dollars).

The validation sort of uses javascript anyway and I have it working on my site
and I don't have FP extensions installed.



"skc" <(E-Mail Removed)> wrote in message
news:090201c3d5d4$cec70b80$(E-Mail Removed)...
I have a FP2000 Form, which I want validated on the fly
using Javascript validation, so the script records the
keystrokes (or focus) and notifies the user of any
breaches:

Here are the 3 items I want validated:

1. Currency amount to 2 dp without the £ sign:
E.g. OK => 800.36
BREACH => 800.362 or 800.2655 or abcd

2. Date to be entered dd/mm/yy with "/":
e.g. OK => 22/01/04
BREACH => 222/01/2004 or anything else

3. Time to be entered hh:mm:
E.g. OK => 11:33
BREACH => 222:33, 44:11 etc..

Please can someone provide me with links to free
Javascript for me to do the above.

Thanks.

skc


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript validation with web controls and form postbacks JP2006 Microsoft ASP .NET 0 22nd Aug 2006 06:08 PM
JavaScript form validation JohnH Microsoft Frontpage 2 15th Sep 2004 06:36 PM
Form Validation Not Generating any JavaScript JB Microsoft Frontpage 0 13th Aug 2004 07:15 PM
Form Validation Not Generating any JavaScript Microsoft Frontpage 0 13th Aug 2004 07:11 PM
How to make Javascript validation function to work with FP form Peter Afonin Microsoft Frontpage 5 16th Jan 2004 12:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:33 PM.