I /think/ this has to do with the fact that if you bind events inside
of an event, in IE, then the new events will fire again too, causing
the browser to go into a never-ending loop. You just need to be really
careful about binding duplicate event handlers in IE (at least for
now, until jQuery offers some alternative).

--John

On 10/25/06, Brice Burgess <[EMAIL PROTECTED]> wrote:
>
>
> Ⓙⓐⓚⓔ wrote:
> >
> >               var embed = function(){
> >                       $(this).after(' &mdash; <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
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to