Another point worth mentioning is complexity. I have done some sites stuffed so full of JS that things started breaking without any reason. JS has inherent flaws (in my experience) that prevent it from doing the complex sorts of things many clients need. For small-scale validation, no problem. But for complex operations, like Adam's example, I'll stick with Cocoon and have the client upgrade their servers, if need be.
Lajos galatea.com Andrew Savory wrote: > Hi, > > On Fri, 7 Jun 2002, Luca Morandini wrote: > > >>wait: how many users out there are without JavaScript support ? >> > > Irrelevant question - if there is only one user without javascript > support, you should support that user, surely? The point of the web being > accessibility and the point of a web developer being to develop for the > *web* and not for specific web browsers? It's frustrating that people are > STILL assuming support for X, Y and Z in browsers even after so many years > of browser wars. > </rant> > >>I won't write both validations, I don't simply cater to people wihout >>Javascript... and I wonder how many developers pay attention to those >>unlucky fellows. >> > > Well, if you're lucky enough to have clients that are happy with sites > that only do client-side validation that only works in specific browsers > with specific options enabled, fair enough. I could rant on here about > text-mode browsers, line readers, security-conscious users that surf with > scripting turned off, etc, but given you're using Cocoon, I'm sure you > know how easy it is to provide support for these other browsers simply by > adding more stylesheets ;-) > > Adam: in answer to your question, take a look at: > src/webapp/docs/samples/formvalidation/descriptor.xml > ...which gives a nice example of doing form validation using XML > descriptors. See also: > http://xml.apache.org/cocoon/xmlform/step2-xmlform-howto.html > ...for the new way of doing things. > > Hope that helps, > > > Andrew. > > -- Lajos Cocoon training, consulting & support galatea.com --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>