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
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
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
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:
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
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.
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
7 matches
Mail list logo