Ⓙⓐⓚⓔ wrote:
>
> var embed = function(){
> $(this).after(' — <embed autostart="true"
> valign="bottom"
> height="16" width="160" src="' + this.href + '">')
> .bind("click",function() {return false});
> return false;
> $("[EMAIL PROTECTED]").oneclick(embed);
>
Jake,
Your function did not "re-bind" in the called event. If you want to see
some wacky behaviour try;
---
a = function(){
$(this).after(' A ').oneclick(b);
return false;
}
b = function() {
$(this).after(' B ').oneclick(a);
return false;
}
$().ready(function() { $("a").oneclick(a); });
---
WARNING: this will crash IE. FF will behave as expected.
~ Brice
--
View this message in context:
http://www.nabble.com/BUG%3A-Rebinding-an-event-in-IE-tf2510315.html#a7004458
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/