It looks to me like the code you supplied does 3 things, all of which
occur when the page loads:

1) Add click handler to the submit button to call blockUI
2) Prepare a form for validation to occur on keydown events
3) Unblock the UI

My point is that unblockUI is not invoked in response to any
validation events.  It is only invoked when the page loads.

Mike


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().
> > > >
> > >
> >
> >
>


Reply via email to