Why would one use Javascript to check form data when server side is more reliable? It seems integrity is more imporant than speed. Amy I missing something?
JAB Creations
2:59 pm on Apr 5, 2005 (gmt 0)
I'm a serverside newb but one POV is that clientside will save you bandwidth if you have a lot of people visint your site who don't understand the concept of reading directions. :-J
tomda
3:05 pm on Apr 5, 2005 (gmt 0)
Because client side, you'll need to find a solution for those who have javascript disabled!
e.g., I know that some WW have already disable javascript in their favorite firefox due to the last Firefox flaw..
Moby_Dim
3:21 pm on Apr 5, 2005 (gmt 0)
Use both. This is a professional approach.
dcrombie
4:33 pm on Apr 5, 2005 (gmt 0)
Using 'Ajax' you can validate data server-side as it's entered in the form, and use the same code again when the form is submitted ;)
rocknbil
5:46 pm on Apr 5, 2005 (gmt 0)
IMO Javascript form preprocessing is an enhancement for the user. It avoids them having to re-fill in data that may get lost, speeds up their experience, and allows them to get on and off the page in one click instead of several back-buttons or resubmissions.