On Oct 20, 2009, at 3:53 AM, Constantin Valeriu Tuguran wrote:
Thanks for the help.
I wanted to give the user some feedback while waiting for an action to
complete so I can not return false.
I must find another way.
How about this, then? ...
$(document).ready(function(){
$(".action").click(function(){
var thisHref = this.href;
$("#panel")
.animate({top:"0px"}, 500)
.animate({top:"0"}, 4000)
.animate({top:"-75px"}, 500, function() {
window.location = thisHref; // <-- follow the link after the last
animation finishes.
});
return false; // <-- prevent the link from being followed before
animations.
});
$("#panel").click(function(){
$("#panel").hide();
});
});
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com