[jQuery] Re: Validation with rewriting

2009-07-27 Thread Jörn Zaefferer
You could start by writing custom methods for each of these input types, and where possible, delegate to the existing methods: http://docs.jquery.com/Plugins/Validation/Validator/addMethod What do you think? Jörn On Mon, Jul 27, 2009 at 8:42 PM, Brett Ritterswift...@swiftone.org wrote: I

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Brett Ritter
On Mon, Jul 27, 2009 at 5:20 PM, Jörn Zaeffererjoern.zaeffe...@googlemail.com wrote: You could start by writing custom methods for each of these input types, and where possible, delegate to the existing methods: http://docs.jquery.com/Plugins/Validation/Validator/addMethod If I'm following

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Jörn Zaefferer
Having JS sanitize for the backend is somewhat dubious, I'd not go there, but you probably don't want to discuss that. Anyway, a validation method has access to the validate element, so you could as well write a method that just sanitizes, nothing else. Combine that with a strict validation

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Brett Ritter
On Mon, Jul 27, 2009 at 6:06 PM, Jörn Zaeffererjoern.zaeffe...@googlemail.com wrote: Having JS sanitize for the backend is somewhat dubious, I'd not go there, but you probably don't want to discuss that. I think we're in agreement there, actually. JS provides no security and shouldn't be