W3C Releases XForms 31
An anonymous reader submits: "On the heels of several other releases, the W3C has released XForms as a Candidate Recommendation. Coverage here and here. XForms is the way-better version of HTML forms -- it's XML-based and includes built-in client-side validation and calculations, without scripting. It is expected to replace old-fashioned HTML forms in XHTML 2.0. It's also being viewed by many as the standards-based alternative to Microsoft's XDocs. Now's your chance to try it out and submit your comments, before the official Recommendation comes out in a few months."
uhmmmm (Score:2, Interesting)
Re:uhmmmm (Score:2)
(the Microsoft ASP.NET validation stuff uses proprietary DOM - but there is a DOM version now that works in Mozilla [slashdot.org])
Re:uhmmmm (Score:1)
XForms? (Score:3, Interesting)
I thought that XForms was pretty much moribund, mostly caused (IMHO) by the "only free for non-comercial use" license. It appears that I was wrong, though. In fact, it looks like the soon to be released 1.0 will be licensed under LGPL. Too bad about the name clash, though.
But please... (Score:3, Interesting)
Re:But please... (Score:2)
When I ask for a telephone number, I don't want the sender to make it easier to remember or "make a point." I want their telephone number. Heck, if I'm storing it in a database as an integer, allowing them to enter text will just result in a blank data value in the database. Whoops.
Jennifer Lee won't have any problems entering her name without the middle name, and she could just put Jennifer Eight Lee if she really wanted to.
Re:But please... (Score:2)
Re:But please... (Score:2)
> "make a point." I want their telephone number. Heck, if I'm storing it in a database as an
> integer, allowing them to enter text will just result in a blank data value in
> the database. Whoops.
That's something that really bugs me about forms that require a phone number with only integers.
What's my phone number? Is it what my neighbour would dial? Is it what someone in a different
city in the same country would dial? Is it what you, the person asking would have to dial -
which I'm very unlikely to know?
When I fill in my number I indicate that it's an
"international" number with a +
In my case +64-9-xxxxxxxx
to indicate that it's New Zealand(64) - Auckland(9) - number
As far as I'm aware that's a standard.
if I don't put the plus, the number is pretty much useless to you. Most web forms don't seem
to let me put it.
- Muggins the Mad
Re:But please... (Score:2)
Furthermore, I live in Sweden and our addresses look nothing like US standard adresses. This is almost often troublesome. Recently, I was forced to enter a state even though I elsewhere had submitted "Sweden" rather than "USA" as country. (I chose Alaska!)
The list goes on. Most often, overzealaous validation is simply wrong. I todays global society, it is simply too hard to know every acceptable format, and you are better off being a bit relaxed about it. "Jennifer 8 Lee" is a perfectly valid string in a database.
Re:But please... (Score:2)
That's Slashdot's automatic anti-spam formatting, it changes weekly.
Furthermore, I live in Sweden and our addresses look nothing like US standard adresses.
Any site that deals with international visitors should be prepared to handle them. If it's not, that's not a validation problem - that's a problem with the company not understanding their customers. It's a completely different problem.
Re:But please... (Score:1)
Re:But please... (Score:2)
Poorly implemented validation, to my mind, would be not letting someone use hyphens in their credit card number or rejecting any and all zip codes that don't include a zip-plus. Asking that Jennifer 8 or The Symbol Formerly Known As The Artist Formerly Known As Prince partake of the alphabet every once in a blue moon, on the other hand, seems like a rather reasonable request.
I disagree -- client validation a handrail (Score:2)
If someone wants to enter a bogus name, they're going to do it. Overzealous "validation" is a PITA for a bunch of people. Why do it? Your "checking" above doesn't help security or the integrity of your database in the least. Now, I will grant that if someone *accidently* writes a sentence describing themselves instead of their name in the name field, then indeed, your solution would have caught something that mine would not have. However, I'm quite dubious as to the value of this (how often do people make mistakes like this?), but I'm quite certain that Jennifer and Prince are not tremendously thrilled with your refusing to accept legal names.
Interesting thread @bugzilla (Score:3, Informative)
Nonono.. don't client validate! (Score:2)
Never trust the client to do validation of data!!!! How do you think people cheat at quake etc etc... it's 'cause the final calculation is not done in the server!!!
Thank you.
Re:Nonono.. don't client validate! (Score:2)
Re:Nonono.. don't client validate! (Score:2, Insightful)
Of course not. Just because you don't trust the client doesn't mean you don't let them. Client-side validation is for the benefit of the client. The nice thing is, now that validation is in the form definition, you can use the same definition to perform the server-side validation as well.
Re:Nonono.. don't client validate! (Score:4, Insightful)