Mike, it does indeed seem that $StoreUpdateForm[0] is undefined on
subsequent clicks. I don't understand why that should be! I've got something
happening now that is causing my page to be repetitively blocked and
unblocked such that it looks like the screen is flashing with a slow fade
(if I weren't having a problem, I'd say it even looks kinda cool ;o).

Mike, if you've got some time. Please email me off list and I can show this
to you in action.

Thanks,
Chris


Notice that this time instead of caching the jQuery object
$("#StoreUpdateForm") into a variable called $StoreUpdateForm, I now force
jQuery to look it up each time I use it.

On 8/6/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
>
> Mike, thanks. I'll check that. email me off list if you'd like to see
> it working... or not working... or whatever ;o)
>
> On 8/6/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> >
> > Chris,
> >
> > It's hard to say without seeing the code in action.  Try putting a
> > break on the line where $.blockUI is called.  Based on your
> > description it would seem like $StoreUpdateForm[0] is null at that
> > point.
> >
> > Mike
> >
> >
> > >         success: function(data) {
> > >             $StoreUpdateForm.empty().append(data);
> > >             $("#CloseBtnID").bind("click",function(){
> > >                 $.unblockUI();
> > >             });
> > >             $("#SaveBtnID").bind("click",function(){
> > >                 alert("coming soon");
> > >             });
> > >             $.blockUI($StoreUpdateForm[0],{padding:'2px',
> > > borderColor:'#3F6F5E', top:'25%', left:'50%' });
> >
>
>
> --
> http://cjordan.us
>



-- 
http://cjordan.us

Reply via email to