for this, i would suggest something along the lines of the the example given below...
You will have this somewhere in ur code... this is the validation logic var validator = $("#frm").validate({ rules: {} }); What i am trying to say is, u dont specify the event that is used by the validator in the validator itself... Also u assign the validator to a separate variable. Then, on some event in ur form (eg: keydown), invoke this valitor. $("#someInputField").keydown(function() { $.blockUI(); validator.form(); // this invokes the validator $.unblockUI(); }); hope that helps. -GTG On 6/28/07, Web Specialist <[EMAIL PROTECTED]> wrote:
What I want to do: - When user submits our form blockUI "blocks" and after validated(I have a routine with) blockUI "unblocks" that form. 2007/6/28, Mike Alsup < [EMAIL PROTECTED]>: > > > All this shows is that unblockUI executes when the DOM is ready. I > don't understand what you're trying to do. > > Mike > > > On 6/28/07, Web Specialist < [EMAIL PROTECTED]> wrote: > > Sorry Mike. I'm using in our intranet. But code is simple like this: > > > > // function to show wait message when user fires submit button > > <script type="text/javascript"> > > $(function() { > > $('#SubmitForm').click(function() { > > $.blockUI(); > > }); > > }); > > </script> > > > > <script charset="iso-8859-1" type="text/javascript"> > > $(document).ready(function(){ > > ... > > // VALIDATION ROUTINE > > $("#frm").validate({ > > event: "keydown", > > focusInvalid: false, > > rules: { > > username: { required: true }, > > ... > > }, > > > > messages: { > > username: "Please enter your username", > > ... > > } > > }); // END FOR VALIDATION ROUTINE > > // if user needs to change any data because validation... or > fields > > entered are right > > // unblocks form > > $.unblockUI(); > > }); > > </script> > > > > > > > > 2007/6/28, Mike Alsup < [EMAIL PROTECTED]>: > > > > > > You need to provide more of the code or a link to a sample > page. It's > > > likely that you have a JavaScript error somewhere and the unblockUI > > > call is never truly being invoked. > > > > > > Mike > > > > > > On 6/28/07, Web Specialist < [EMAIL PROTECTED]> wrote: > > > > Sorry Sam, mistyped. I'm using $.unblockUI(). > > > > > > > > > > > >