[jQuery] Re: blockui timeout

2007-04-03 Thread Mike Alsup
Ah, yes... sorry to lead you astray. Good work, Tom. Mike On 4/3/07, Tom Shafer <[EMAIL PROTECTED]> wrote: thanks mike, I got it working with this $('a.respond').bind('click', function() { var $el = $(this).prev('div'); $el.block('Please Login to submit your opinio

[jQuery] Re: blockui timeout

2007-04-03 Thread Tom Shafer
thanks mike, I got it working with this $('a.respond').bind('click', function() { var $el = $(this).prev('div'); $el.block('Please Login to submit your opinion.',{ border: '3px solid #a00'}); setTimeout(function(){ $el.unblock(); }, 5000); r

[jQuery] Re: blockui timeout

2007-04-03 Thread Tom Shafer
thanks mike, im getting the hang of this. $this is your friend im learning On Apr 3, 6:32 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > Tom, > > Just add the timeout after you've called block(). > > $('a.respond').bind('click', function() { > var $el = $(this); > $el.prev('div').block('Pl

[jQuery] Re: blockui timeout

2007-04-03 Thread Mike Alsup
Tom, Just add the timeout after you've called block(). $('a.respond').bind('click', function() { var $el = $(this); $el.prev('div').block('Please Login to submit your opinion.',{ border: '3px solid #a00'}); setTimeout(function(){ $el.unblock(); }, 5000); return false; }); Mike PS:

[jQuery] Re: blockui timeout

2007-04-02 Thread Tom Shafer
Thanks guys, I got rid of the function and using this. $('a.respond').bind('click', function() { $(this).prev('div').block('Please Login to submit your opinion.',{ border: '3px solid #a00'}); return false; }); so wouldnt I need to chain the settimeout

[jQuery] Re: blockui timeout

2007-04-02 Thread Erik Beeson
Your setTimeout syntax looks a little off. Maybe: setTimeout(function() { $el.unblock(); }, 5000); --Erik On 4/2/07, Mike Alsup <[EMAIL PROTECTED]> wrote: Tom, If you're still using a function to block, it's something like this: function blockElement(id) { var $el =$('#'+id); $el.

[jQuery] Re: blockui timeout

2007-04-02 Thread Mike Alsup
Tom, If you're still using a function to block, it's something like this: function blockElement(id) { var $el =$('#'+id); $el.block(); setTimeout(function() { $el.unblock(); 5000 }); } On 4/2/07, Tom Shafer <[EMAIL PROTECTED]> wrote: How could I use settimeout on block so that blo