generalised validation functions

Results 1 to 3 of 3

Thread: generalised validation functions

  1. #1
    Join Date
    Dec 1969

    Default generalised validation functions

    hai<BR>Can I write a JS function which can handle my form validations as a .js file. i want to pass the form name as one parameter and elements in that form as an array as the second parameter. my idea is regardless of the form, for the validations, i will call this general function where i will pass the form name and elements array. In that array i will pass the validation message also with respect to the controls...<BR><BR>is it possible of is any other better method is for doing something like this. My requirement is i don;t want to write the validation function in each and every page. <BR><BR>pl. help by giving an answer or suggesting better solutins<BR><BR>thanks in advance<BR><BR>sajith

  2. #2
    Join Date
    Dec 1969

    Default RE: generalised validation functions

    you can do that, sure. easy.<BR><BR>what I do, however, is outlined at - I use a modular approach with a &#039;shell&#039; function, and a set of &#039;core&#039; functions to do all my validation. they&#039;re all homesite snippets, so I just click 3 or 4 times and I have fully functional validation. just as good as your suggestion...<BR><BR>j

  3. #3
    Join Date
    Dec 1969

    Default See my answer in HTML forum...

    ...when it gets posted by monitor.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts