Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Generic HTML Form Validator

by YAFZ (Pilgrim)
on Nov 03, 2003 at 14:49 UTC ( #304124=note: print w/replies, xml ) Need Help??

in reply to Stupid Emotional Programmer Attachment, anyone?

Well, mine isnīt in Perl, C/C++, etc. but I like it ;-) It is written in JavaScript (anybody who says ECMAScript? ;-) and is a generic HTML form validator which lets HTML designers use nothing except their HTML skills to create forms that validate themselves.

The idea is to use the utility of user-defined-HTML-attributes-on-the-fly and thus get rid of tackling with JScript at all.

The idea is explained (only in Turkish, if anybody is interested I can translate it into English) here: Generic HTML Form Validation You can download the JS package and the sample web page. It is compatible with Mozilla, Netscape, Internet Explorer. The difference between this system and the others is that they need the programmer/designer to modify the JavaScript in one way or the other.

I'm sure Perl has got nice solutions to this frequently encountered problem but in case you donīt use Perl in every Internet project, I think this tool can help you in a valuable way ;-)

Replies are listed 'Best First'.
Re: Generic HTML Form Validator
by jZed (Prior) on Nov 03, 2003 at 22:37 UTC
    Umm, no matter what the client side does in terms of validation, the server side needs to validate. There is no way to ensure that all input into the server side will come through your javascript. I usually do some of each - trap what errors I can in JavaScript and check *everything* in Perl anyway.
      I have no arguments against that. All I wanted to do was to ease the coding and package frequently used code into a tiny and compact system that can be used in different projects, pages, etc.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://304124]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2021-06-15 06:34 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (67 votes). Check out past polls.