[jQuery] Re: Validation: Which and why...

2009-01-08 Thread Nikola
I'm thinking now that I'll use jQuery validation methods from the start which can make the form more interactive and interesting. If the form validates within jQuery then I'll pass it to my php validation method. In this case, I'll use to php to re-validate the form under stricter criteria and e

[jQuery] Re: Validation: Which and why...

2009-01-08 Thread Nikola
I'm thinking now that I'll use jQuery validation methods from the start which can make the form more interactive and interesting. If the form validates within jQuery then I'll pass it to my php validation method. In this case, I'll use to php to re-validate the form under stricter criteria and e

[jQuery] Re: Validation: Which and why...

2009-01-08 Thread Jörn Zaefferer
I've updated the Goals section a bit: http://docs.jquery.com/Plugins/Validation/Reference#Goals Jörn On Wed, Jan 7, 2009 at 11:24 PM, Tristan Burch wrote: > > It seems like a good idea to to both. That way if the user does have > JavaScript disabled, there is still validation on the server side

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Tristan Burch
It seems like a good idea to to both. That way if the user does have JavaScript disabled, there is still validation on the server side. On Wed, Jan 7, 2009 at 1:47 PM, Will Anderson wrote: > > I choose to validate from PHP because of a couple things. > > 1. It's more secure because nobody can se

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Nikola
Great information, I have some very strong ideas of when and how I'll impliment jQuery and php validation now. Thanks much, Nikola

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Dave Methvin
> I am wondering what the relative advantages / disadvantages are of > validating purely in php vs. in jQuery. Neither is a replacement for the other, so using both is the best solution. Client-side validation with jQuery lets you give the user feedback without requiring a page reload. That tend

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Cam Spiers
I like to implement all my validation logic server side and to make it more userfriendly I like to ajax my forms and send the validation errors back as json. I know this might not be the prefered method for some but it means you only have to write your validation code in one language. (because as

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Nikola
Thanks for the info, I was thinking along the same lines but wasn't altogether sure.

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Will Anderson
I choose to validate from PHP because of a couple things. 1. It's more secure because nobody can see my PHP code, but they can see my jQuery code. 2. If the user has JavaScript disabled, or for some other reason the jQuery is unable to validate the code, it will still be validated. On the other