Hi, I'm having the same problem only not using bind but just attaching the function using the simple syntax. Here is my post of a couple of days ago:
http://www.nabble.com/IE-function%28%29-bug-when-using-clone%28%29-tf3137347.html Unfortunately, noone has responded to my post yet either. We did eventually find a work around by running a function at the end of our code that unbinds and rebinds every object with that behavior but it's not really a good solution. This seems like a pretty big IE bug. Thanks for keeping this alive. Sincerely, Father Mojo (aka. Eli Cochran) masonjo wrote: > > Hello, > > I am writing a jquery script. It works fine in firefox, but in IE when > I bind a function to click it causes that function to trigger. Here is > part of the code. The faqLoad function fires on page load. If I > remember correctly this happened with I used click instead of bind. > > Any help would be appreciated. > > John > > > function faqExpand(){ > $(this).find("img").attr("src","http://www.ptclinic.com/faq/minus.gif"); > $(this).next().slideDown("normal").animateColor(1500, > {backgroundColor:['#ff0','#fff']}); > $(this).unbind("click"); > $(this).bind("click",faqCollapse); > $(this).attr("title","Collapse Answer"); > return false; > }; > > function faqCollapse(){ > $(this).find("img").attr("src","http://www.ptclinic.com/faq/plus.gif"); > $(this).next().slideUp("normal"); > $(this).unbind("click").bind("click",faqExpand); > $(this).attr("title","Expand Answer"); > return false; > }; > > function faqLoad(){ > $(".faqanswer").hide(); > $(".question").bind("click",faqExpand); > $(".question").hover(function(){$(this).addClass("over");},function(){$( > this).removeClass("over");}); > $("#faqTitle").after("<h5 style='text-align:center;'>(Click on a > Question to view the Answer)</h5>"); > }; > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/Bind-triggers-function-tf3146103.html#a8730468 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
