Bug Tracker

Opened 12 years ago

Closed 9 years ago

#2386 closed bug (invalid)

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:

Description

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.

Change History (3)

comment:1 in reply to:  description Changed 12 years ago by snpower

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

comment:2 Changed 12 years ago by jjn

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.

comment:3 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.