logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • GM
    • Posted on Fri 26 May 2006 08:12 AM

    For form validation I don't see the need for something like a "Validator" object - it seems to be a waste of time and energy to go through so much trouble to validate a form on the client side, when the user can freely circumnavigate this code. On the server-side, however, I can understand it fully, although there you wouldn't be using Javascript, obviously. On the client side, a basic "Is the field empty?", "Is the field a number?", "Is the value within this range?" type of validation is usually sufficient.

    I think Javascript objects are much more useful and relevent in creating DHTML elements - I use JS objects for sortable tables, collapsable sections, appearing/disappearing areas etc. and there I find JS objects almost indispensable.

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: