|
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 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.