Bug Tracker

Modify

Ticket #2386 (closed bug: invalid)

Opened 5 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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

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

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

comment:2 Changed 5 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 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.