[jQuery] Re: [validate] How to disable submit button until form is fully validated

2009-03-17 Thread D.Kreft
On Mar 16, 12:26 pm, Stephen Sadowski wrote: > How about > $('#form input,select,radio').change(function() { /* check to see if > necessary fields are filled out, if so enable submit */} Hi Stephen, thanks for your suggestion. The problem with this approach is two-fold: 1) This requires u

[jQuery] Re: How to disable submit button until form is fully validated

2009-03-17 Thread D.Kreft
On Mar 17, 4:53 am, RobG wrote: > It is much more user friendly to let the user complete the form and > submit it.  Run validation onsubmit (or onblur of individual fields if > you like) and cancel submit if they don't get it right. > > Do not lock users into getting a field valid before letting

[jQuery] Re: How to disable submit button until form is fully validated

2009-03-17 Thread D.Kreft
On Mar 16, 7:39 pm, Mac wrote: > The validate plugin has a success option that enables customization of > the valid fields on the form > It takes a string or a function. In the validate plugin documentation > the example is used to add a class to the label, but since it's a > function, you could

[jQuery] [validate] How to disable submit button until form is fully validated

2009-03-16 Thread D.Kreft
A variant of this question pops up on occasion, but none of the answers I've seen thus far suit my use case. The solution usually involves the recommendation to do something like this: $(...).validate({ ..., submitHandler: function() { // send AJAX request for calcu

[jQuery] Re: please support :target

2009-02-24 Thread D.Kreft
I think $(window.location.hash) is what you're after here. (https://developer.mozilla.org/en/DOM/window.location) -dan On Feb 24, 8:11 am, brian wrote: > Doesn't this work? > > $('#' + location.target).css('background', > 'url(fade-yellow.gif)').css('font-weight', 'bold'); > > On Tue, Feb 24,

[jQuery] [validate] Re: How do I enable a submit button only after all fields are valid?

2009-02-23 Thread D.Kreft
Looks like I forgot to add the "[validate]" prefix to my subject. My apologies. Jörn, if you're out there, I could really use some help with my original post here. :-) -dan

[jQuery] How to get jQuery UI as discrete files

2009-02-20 Thread D.Kreft
I'm looking to get a copy of the latest stable jquery UI *as discrete files* but it seems that all that is available now is the customizeable download form at http://jqueryui.com/download. Is there any way to do this? If there isn't, could the Powers That Be make it easy to get this? I'm trying to

[jQuery] Re: How do I enable a submit button only after all fields are valid?

2009-02-19 Thread D.Kreft
Another brute force approach I've tried follows: var checkForm = function() { if ( validator.checkForm() ) { // disable button } else { // enable button } return true; }; $('#myForm').keyup(che

[jQuery] [validate] How do I enable a submit button only after all fields are valid?

2009-02-19 Thread D.Kreft
I'm terribly sorry to post this question yet again, as it seems to come up quite frequently, but the answers I've seen have all been unsatisfactory to suit my use case. The solution usually involves the recommendation to do something like this: $(...).validate({ ..., submitHan

[jQuery] Re: [autocomplete] + [ajaxqueue] confusion

2008-09-23 Thread D.Kreft
On Sep 20, 5:33 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > None of that is "regis-authored". The plugin, as released on > plugins.jquery.com provides similar features but a different API. The > in SVN was written by me, while autocomplete leverages only the > abort-option. So as long as yo

[jQuery] [autocomplete] + [ajaxqueue] confusion

2008-09-19 Thread D.Kreft
I'm a bit confused. In the autocomplete plugin source I see these lines: $.ajax({ // try to leverage ajaxQueue plugin to abort previous requests mode: "abort", The ajaxqueue plugin that Jorn links to here fr