Skip to main content

Bug Tracker

Side navigation

#2386 closed bug (invalid)

Opened February 22, 2008 09:50AM UTC

Closed June 22, 2010 02:54AM UTC

problem with click return value in Firefox

Reported by: snpower Owned by:
Priority: major Milestone: 1.2.4
Component: event Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:

I have 2 onclick events. The first one is a lightbox and the onclick function for this returns false. The second is for google analytics (keeps count of downloads) and the onclick function doesn't specify a return value. Everything worked perfectly with jQuery 1.1.2 (lightbox opened on the same page), but since upgrading to jQuery 1.2.3 it doesn't. With jQuery 1.2.3, the lightbox is opened briefly, but the google analytics onclick event function seems to now default to a return value of true causing the image to then be opened in a new page, breaking the site lightbox functionality.

Attachments (0)
Change History (3)

Changed February 22, 2008 09:52AM UTC by snpower comment:1

This only happens in Firefox by the way, and not in IE 6 or IE 7.

Changed March 12, 2008 06:18PM UTC by jjn comment:2

I have this problem with IE6 which sounds similar to this bug. When I upgraded to 1.2.3, my Thickbox installation broke. My Thickbox links are added after the page is loaded and it seems that binding 'return false' fails, because the links will open in a new page rather than running the Thickbox script. Same thing when I switched to Shadowbox plugin, my links are created and bound on the fly, and in IE6 clicking the link would open the image in a new window rather than running the Shadowbox script on the same page.

When I rolled back to jQuery 1.2.1, the problem disappeared.

Changed June 22, 2010 02:54AM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed

This report is too vague. Please open a new ticket with a test case demonstrating the problem.