You could also offer a choice of implementations:
1)
input type=text name=EmailAddress required=true validation=email/
This would be the super-easy implementation which works but won't validate.
2)
input type=text id=EmailAddress name=EmailAddress/
script type=text/javascript
On Sun, 20 Mar 2005 08:55:26 -0600, Steve Bryant [EMAIL PROTECTED] wrote:
script type=text/javascript
document.getElementById('EmailAddress').setAttribute(required,true);
document.getElementById('EmailAddress').setAttribute(validation,email);
/script
This would be the slightly more
On Sun, 20 Mar 2005 03:04:23 -, Sigurd Magnusson
[EMAIL PROTECTED] wrote:
Your problem is described in detail in:
http://www.alistapart.com/articles/customdtd/
Before creating your own tags/attributes, check
http://whatwg.org/specs/web-forms/current-work/
--
regards, Kornel Lesiski
Thanks for all your feedback;
Steve Bryant: Cheers. The second approach is pretty code-heavy, so I would
probably make the verbose style
onblur=checkvalidation('required=true,validation=numeric') and possibly run
the onblur event on all forms at the submission, or something like that.
Gez; So
On Mon, 21 Mar 2005 08:17:50 +1200, Sigurd Magnusson
[EMAIL PROTECTED] wrote:
Gez; So you're under the opinion, if you're setting attributes, only for
later retrieval (i.e. that the user agent is specifically being asked to
ignore the attributes), that this is poor design?
I don't necessarily
This is a split technical/marketing dilemma for people to ponder...
Over the past few years, we have built up a library of rather useful
Javascript libraries that we thought were a very elegant solution for adding
behaviour to menu systems and forms. These have been used on dozens of
websites,
On Sun, 20 Mar 2005 15:04:23 +1200, Sigurd Magnusson
[EMAIL PROTECTED] wrote:
Over the past few years, we have built up a library of rather useful
Javascript libraries that we thought were a very elegant solution for adding
behaviour to menu systems and forms. These have been used on dozens of
On Sun, 20 Mar 2005 03:46:21 +, Gez Lemon [EMAIL PROTECTED] wrote:
input type=text name=EmailAddress required=true class=email/
Didn't mean to leave the required attribute in, sorry :-)
input type=text name=EmailAddress class=required email/
Cheers,
Gez
_
G'day
1. Technical -- there will be times when the validator shows errors.
2. Marketing -- people consider a document validates or doesn't.
It's not only people... Almost valid documents will most
likely not display if the document in question is served as
application/xhtml+xml.
Therefore,