Re: [jQuery] Form validation

2007-02-08 Thread John Keyes
I hadn't noticed that, I thought it was all done with class. Yeah it'd be good to not require custom attributes. -John K On 2/8/07, Olivier Percebois-Garve [EMAIL PROTECTED] wrote: Anybody knows if we can use it by defining the rules in javascript instead of adding custom attributes to the

[jQuery] Form validation

2007-02-06 Thread Alexandre Plennevaux
hello, i used to use this very nice library for form validation, back in those days when i was using prototype: http://tetlaw.id.au/view/javascript/really-easy-field-validation http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototype/ I would like to know if there is

Re: [jQuery] Form validation

2007-02-06 Thread Giuliano Marcangelo
Alexandre, take a look at what Jorn cooked up some while back http://fuzz.bassistance.de/jQueryFormValidation/validateTest.html On 06/02/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hello, i used to use this very nice library for form validation, back in those days when i was using

Re: [jQuery] Form Validation (no Ajax)

2006-11-14 Thread Jörn Zaefferer
Hi Paul! Nice to see you got it working. The callback is a feature of the next release. Excellent! Thanks Jörn. I implemented almost exactly the same work around as Bruce when I needed a call back. But I'm wondering for your rewrite are you going to go with a callback setting, or

Re: [jQuery] Form Validation (no Ajax)

2006-11-14 Thread Jörn Zaefferer
Meanwhile, you can take a quick look a that discussion and it may point you in the right direction. Good idea -- I found it and got it to work on first try. Here's the method Jörn's suggested (as I implemented it): Thanks Ben Jörn Nice to see you got it working. The callback is a

Re: [jQuery] Form Validation (no Ajax)

2006-11-14 Thread Paul McLanahan
On 11/14/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Nice to see you got it working. The callback is a feature of the next release.Excellent! Thanks Jörn. I implemented almost exactly the same work around as Bruce when I needed a call back. But I'm wondering for your rewrite are you going to go

[jQuery] Form Validation (no Ajax)

2006-11-13 Thread Bruce McKenzie
I've used Jörn Zaefferer's plugin titled Form Validation (no Ajax) on the plugins page for normal form submission -- nicely done. I assumed that the no Ajax meant you didn't have to get your validation rules from the server. But now I find I can't make it work *with* Ajax submission

Re: [jQuery] Form Validation (no Ajax)

2006-11-13 Thread Jörn Zaefferer
Hi Bruce! I've used Jörn Zaefferer's plugin titled Form Validation (no Ajax) on the plugins page for normal form submission -- nicely done. I assumed that the no Ajax meant you didn't have to get your validation rules from the server. But now I find I can't make it work *with* Ajax

Re: [jQuery] Form Validation (no Ajax)

2006-11-13 Thread bmsterling
Bruce, I had the same question a few weeks back and I more or less got the answer from Jörn. Let me look for the code that I made and we can see if that helps you. Meanwhile, you can take a quick look a that discussion and it may point you in the right direction. Ben -- View this message in

Re: [jQuery] Form Validation (no Ajax)

2006-11-13 Thread Wil Stuckey
I'm not totally sure how the event system works, but couldn't you attach another function to the forms submit event? like this:$('#form').validate().submit(function(){ // do stuff});This is just a shot in the dark, I don't really know that much about the inner workings of _javascript_ events.

Re: [jQuery] Form Validation (no Ajax)

2006-11-13 Thread Bruce McKenzie
bmsterling wrote: Bruce, I had the same question a few weeks back and I more or less got the answer from Jörn. Let me look for the code that I made and we can see if that helps you. Meanwhile, you can take a quick look a that discussion and it may point you in the right direction.

Re: [jQuery] form validation w/ simple ajax

2006-11-02 Thread bmsterling
blair, I will give that a try today, thanks for your input. Much appreciated. Ben -- View this message in context: http://www.nabble.com/form-validation-w--simple-ajax-tf2554683.html#a7133077 Sent from the JQuery mailing list archive at Nabble.com.

Re: [jQuery] form validation w/ simple ajax

2006-11-02 Thread bmsterling
Will, That is the script I initially started out with and loved it. I just could not figure out how to set up the submit part. Meaning, I could not figure out how to set it up so that it would recheck everything once you hit submit. I also could not figure out how to turn off the ajax part.

Re: [jQuery] form validation w/ simple ajax

2006-11-02 Thread bmsterling
Jörn, that would be great, is there some direction you can give me on how to achieve that on my own if I were to user your code? thanks for the help. -- View this message in context: http://www.nabble.com/form-validation-w--simple-ajax-tf2554683.html#a7135869 Sent from the JQuery mailing list

Re: [jQuery] form validation w/ simple ajax

2006-11-02 Thread Jörn Zaefferer
Jörn, that would be great, is there some direction you can give me on how to achieve that on my own if I were to user your code? thanks for the help. Sure. Add an option called 'callback' or something similar. Within isFormValid, check if that option is set and call it instead of returning

[jQuery] form validation w/ simple ajax

2006-11-01 Thread bmsterling
Hey all, I am working on some form validation and all works fine except on point. what I am trying to do is check if an email address is already in the database, I get the connection and the function gets a return but I can't get the return to return true. Not sure if this making sense so here

Re: [jQuery] form validation w/ simple ajax

2006-11-01 Thread Blair McKenzie
I'm pretty sure the ajax functions don't actually use the return values of the callback functions. Were you expecting something to happen when you return false?BlairOn 11/2/06, bmsterling [EMAIL PROTECTED] wrote: Hey all,I am working on some form validation and all works fine except on point.what

Re: [jQuery] form validation w/ simple ajax

2006-11-01 Thread bmsterling
Blair, Thanks for the response. I was trying to return a true or false with: function(json) { eval(var args = + json); if (args.success == true){

Re: [jQuery] form validation w/ simple ajax

2006-11-01 Thread bmsterling
That is what I initially started out doing, but for some reason it was not working out according to plan. I am think it was not working because, as the ajax part was excuting, the rest of the js was running its course. Is there a way to stop the progression until the variable has a value? --

Re: [jQuery] form validation w/ simple ajax

2006-11-01 Thread Will Jessup
might want to look here: http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html Blair, Thanks for the response. I was trying to return a true or false with: function(json) { eval(var args = + json);