Bill,

Zach Dennis has posted a few ideas that I don't completely understand...

What I can add to your quest is the following:

Data validation is a huge topic on the internet ever since people have been filling forms and there are many, many ready made javascript validation scripts available. Some of them are more valuable than others. Your data validation routines from 4D cannot be used directly or indirectly for client-side validation. However, there are a large number of things you can do with javascript that are very nice.

The typical validations that client side javascript commonly tests are:

Does a required field have an entry?
Is a numeric value within a given range?
Is a date within an acceptable range and is it a real date?
Does an email address look like a real email address (ie [EMAIL PROTECTED])?
Are two fields (like password and password reentry) identical?

Unfortunately you cannot use any 4D code directly on the client side.

Once the form is posted to your server, then you can use A4D to validate the data more thoroughly.

This is one of those areas where you have to go with the flow. The chasm between 4D and an html form has not yet been bridged. Maybe in the next century...Who knows? :-)

Now you could have A4d generate your javascript, but why? It seems far easier to write an external .js file and link to it within an html page.

Jim Redfield



Reply via email to