stanhecht
Posts: 6
|
Posted: 03/16/2004, 1:40 PM |
|
Well, my eyes are mighty tired from going thru CCS docs and tutorials, but I'm still curious about data validation. Is CCS using any client-side validation? Or do all the field values get POSTed back to the server for validation there?
Rephrasing that question ... assume I want to do simple form validations at the client (eg, required fields entered, numbers in range, etc). Is CCS generating any javascript to help with this, or is it necessary for me to write appropriate javascript code blocks and send them to the client along with the web page.
Thanks,
Stan
|
|
|
peterr
Posts: 5971
|
Posted: 03/16/2004, 1:56 PM |
|
Many of the client-validation cases can be handled by assigning the "Validate Entry" action to the "OnLoad" client event. This is also useful for implementing the input mask.
You can see an example at http://examples.codecharge.com/ExamplePack/InputMask/InputMask.php , which is also included in CCS (CCS Example Pack).
Though I would recommend to keep the server validation anyway if you want to prevent hack attempts, such as submissions of modified forms.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|