a simple answer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aaryan
    New Member
    • Nov 2006
    • 82

    a simple answer

    hi guys,
    just want to know the answer to the following question:
    What types of data validation events are commonly seen in the client-side form validation?
    simple,it will be for many. but can you ppl help me out?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I'm not quite sure what sort of answer your looking for.

    There are many different types of validations. The one's I've mainly used are:
    -> checking to make sure required fields are supplied,
    -> phone numbers are valid,
    -> that no special characters are entered in the fields,
    -> that number fields have valid numbers in them

    I'd never fully rely on client side validation because people can modify the html itself and submit the form with invalid data. I use both client side validation and server side validation (testing server side first and then adding on the client side validation is easiest). I guess it would depend on how secure you'd like your website to be.

    Is this the sort of answer you are looking for?

    -Frinny

    Comment

    • aaryan
      New Member
      • Nov 2006
      • 82

      #3
      thanks frinavale,
      but i want another clarification too, again a simple and trivial one.
      is it that a client side validation is done thro' html control and server side validation is done thro' web server controls???

      Comment

      • Sandeep akhare
        New Member
        • May 2006
        • 29

        #4
        Yes upto some what you make client side validation to server controls also but can't html control at server side untill you make them runat server
        i.e validation can be done for both the control a client side but vice versa is not true :-)

        Comment

        • nmsreddi
          Contributor
          • Jul 2006
          • 366

          #5
          Hello

          If you want to validate at client side just choose java script which is the best option

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Originally posted by aaryan
            thanks frinavale,
            but i want another clarification too, again a simple and trivial one.
            is it that a client side validation is done thro' html control and server side validation is done thro' web server controls???
            Client side validation is normally done through JavaScript. It can't really be done using HTML because HTML is just a mark up language that simply marks up text to allow browsers understand what it is your trying to display. JavaScript allows you to check what has been entered by the user, monitor what the user's doing and much more.

            So, client side validation is done using JavaScript and it checks the page's contents before it's submitted to the server.

            Server side validation checks to see what the user has submitted after the information has already been passed to the server.

            I'm not quite sure what you mean by an HTML control.

            -Frinny

            Comment

            • aaryan
              New Member
              • Nov 2006
              • 82

              #7
              Originally posted by Frinavale
              Client side validation is normally done through JavaScript. It can't really be done using HTML because HTML is just a mark up language that simply marks up text to allow browsers understand what it is your trying to display. JavaScript allows you to check what has been entered by the user, monitor what the user's doing and much more.

              So, client side validation is done using JavaScript and it checks the page's contents before it's submitted to the server.

              Server side validation checks to see what the user has submitted after the information has already been passed to the server.

              I'm not quite sure what you mean by an HTML control.

              -Frinny
              thanks. got the idea.....

              Comment

              Working...