I don't know if others are having as tough a time moving to 1.1 as I am, I hope I'm doing something stupid. Anyway, here's my latest find...
I was using the toggle() function to toggle a div in an open/close state, but then after the 1.1 upgrade, the toogle wasn't canceling the default action on the <a> tag that it was attached to (the <a> tag has an href). So, I put in a ticket for this (http://jquery.com/dev/bugs/bug/828/). So, as a workaround, I thought I'd try using the click event instead (even though I know that toggle uses the click event internally). Here's my code: $(".maxmin").unbind().bind('click',function() { var p = $(this).parents(".container"); var pb = $(".content",p[0]); if (pb.css('display') != 'none') { pb.hide(); $.get(scriptURI,{tab:$.query("tab"),pageletname:p.attr ("id"),min:1}); } else { pb.show(); $.get(scriptURI,{tab:$.query("tab"),pageletname:p.attr ("id"),min:0}); } return false; }) Notice the "return false" at the end of the function... this is supposed to stop bubbling and cancel the default action.... it's not. Is anyone else experiencing this with 1.1? Rich
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
