Walden,

I'm not totally against JavaScript validation. I generally use a generic routine in a .js file to alert users to "required" fields before submitting a form to the server. The same routine is used in many applications. It remains cached. And it highlights every missing entry at the same time. Beyond that, I'm more in favor of letting the server handle validation one field at a time. Give credit to most users, that they'll properly fill in the form.

Nathan.

On Mon, Jun 30, 2008 at 9:53 AM, Walden H. Leverich wrote:

And while Javascript validation may run faster, the initial download is slower; requires more bandwidth.

Yes, but if you bundle them (the validation functions) up in a .js file
you can include it everywhere and rely on the browser caching it. Speed
is relative. Yes, your server-side validates are fast, but what if you
had 500 users? 5,000? 50,000? And even if your power-server could handle
it, could your connection to the net?
FWIW, could you also validate all the fields at once? It's somewhat
annoying to have 3 errors on a page, be told about the first, fix the
first, then be told about the second, then fix the second, then be told
about the third...

-Walden

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.