[jQuery] Re: BlockUI: DOM element removed after first unblock

2007-04-13 Thread Matt Grimm
Mike Alsup Sent: Friday, April 13, 2007 7:13 AM To: [EMAIL PROTECTED] Subject: [jQuery] Re: BlockUI: DOM element removed after first unblock Hi Matt, Was that not working? That should work too. It shouldn't matter if you're using a DOM element or a jQuery object, just as long as you

[jQuery] Re: BlockUI: DOM element removed after first unblock

2007-04-13 Thread Mike Alsup
Hi Matt, Was that not working? That should work too. It shouldn't matter if you're using a DOM element or a jQuery object, just as long as you cache it so that the element doesn't get lost. So this is also valid:

[jQuery] Re: BlockUI: DOM element removed after first unblock

2007-04-13 Thread Matt Grimm
lement); test(); }); m. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Alsup Sent: Friday, April 13, 2007 4:34 AM To: [EMAIL PROTECTED] Subject: [jQuery] Re: BlockUI: DOM element removed after first unblock Hi Matt, To reuse a DOM element as the blo

[jQuery] Re: BlockUI: DOM element removed after first unblock

2007-04-13 Thread Mike Alsup
Hi Matt, To reuse a DOM element as the blocking content you must cache a reference to it. That's how the DOM examples work at http://www.malsup.com/jquery/block/. This is necessary because you are free to use a different message or element for every blocking call so unblock always removes the