Hi, can't you check validation before applying the block? Then if validation
returns false direct focus to the first invalid field, and cancel the call
to the block.This might work.
DED

On Tue, Oct 13, 2009 at 5:49 AM, Mark Smith <marksmith5...@jungle-monkey.com
> wrote:

>
> Hi,
>
> I am using jQuery and blockUI to prevent the user from submitting a
> form twice by double clicking on the interface:
>
> This is in my global js file and is called on every pages
> document.ready:
>
> $('form').submit(function(){$.blockUI({message:'', overlayCSS:
> {opacity:0.2}})});
>
> This was working really well, but if I have validation on one of the
> form submits that returns false, I of course want to unblock the UI.
>
> Can you suggest a way of doing this? (without hard coding validation
> checks in the global js file?)
>
> Thanks for any suggestions

Reply via email to