[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread TimW66
Understood. The problem is, this will be replacing an existing application that does re-focus the previous field. And the plan is to make the web app work much like the existing app, but with even more functionality. The only way I've found so far to handle the focus is with a setTimeout() to f

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Jörn Zaefferer
Forcing focus on a field is always a bad idea. Consider other means, like disabling fields. Jörn On Tue, Oct 14, 2008 at 9:23 PM, TimW66 <[EMAIL PROTECTED]> wrote: > > Sorry to hijack a topic, but I too am writing some custom validation, > and I am running into a problem. I have a table form whe

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread TimW66
Sorry to hijack a topic, but I too am writing some custom validation, and I am running into a problem. I have a table form where after data is entered in the first field on the row, a new blank row will be added to the bottom of the table. I want to keep the user from entering a duplicate value

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Rick Faircloth
Good to know... and yes, Jorn's work is great and we appreciate his contributions to the community! Rick Kevin Scholl wrote: Yeah, I have to speak very highly of Jorn's plugin. It's quite comprehensive and very solid. When I started on mine (the first simple version was about a year ago) I sim

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Kevin Scholl
Yeah, I have to speak very highly of Jorn's plugin. It's quite comprehensive and very solid. When I started on mine (the first simple version was about a year ago) I simply wanted to see what I could do on my own, so I didn't use any of the existing plugins. But I don't think you can go wrong with

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Jörn Zaefferer
Yes it does. It even validates on keypress. Details about that are documented here: http://docs.jquery.com/Plugins/Validation/Reference#Validation_event Jörn On Tue, Oct 14, 2008 at 12:23 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > > Jorn, > > Does your plug-in offer on-blur validation? > > R

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Rick Faircloth
Jorn, Does your plug-in offer on-blur validation? Rick Jörn Zaefferer wrote: Have you looked at this validation plugin? http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Jörn On Tue, Oct 14, 2008 at 5:16 AM, Nishan Karassik <[EMAIL PROTECTED]> wrote: That is really slick.

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Jörn Zaefferer
Have you looked at this validation plugin? http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Jörn On Tue, Oct 14, 2008 at 5:16 AM, Nishan Karassik <[EMAIL PROTECTED]> wrote: > > That is really slick. I like the check boxes after it validates. It > looks like you are very well verse

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-13 Thread Nishan Karassik
That is really slick. I like the check boxes after it validates. It looks like you are very well versed in jQuery. This is my first script, but I haven't had time to test it yet. It took me two days (well evenings) to research the right strategy to get that far. I am hoping to submit the form

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-13 Thread Kevin Scholl
I've done something similar to this, where validation is may be run at either field level or on form submit, or both (default is both, can be overridden by invocation setting, below). http://beta.ksscholl.com/jquery/formvalidate.html Routine is invoked by the following snippet in the HEAD of the

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-13 Thread Nishan Karassik
Wouldn't the $("#my-form [EMAIL PROTECTED]'input']").blur(function() { be my trigger? I would like to validate as the user tabs through the form. How would I not run the function if the field just tabbed from is blank? Thanks for your validation of my script. Nishan On Oct 13, 7:30 am, "Jörn

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-13 Thread Jörn Zaefferer
Validation should always hook into the submit event, eg. $(#myform").submit(function() { ... }); That handles both clicking the submit button as well as hitting enter while an input field has focus. Apart from that, the form plugin handles submitting forms via ajax and handling the response quite