[jQuery] Livequery am .load()
Hi,
I'm using livequery with the tabs plugin.
$('.pagelinks a').livequery('click', function() {
$("#loading").ajaxStart(function(){
$(this).show();
});
alert(this.href);
$("#pagedata").load(this.href);
$("#loading").ajaxStop(function(){
$(this).hide();
});
return false;
});
When the page loads everything works fine, but when I switch tabs, it
stops working. I can see that the function is being called (firebug)
and the alert shows the correct link, so I think it a problem with how
I use the normal jquery load function. I think I should be binding $
("#pagedata").load(this.href); also to livequery, but can't figure out
how to do it.
thanks