Bug Tracker

Opened 15 years ago

Closed 14 years ago

Last modified 11 years ago

#3036 closed bug (invalid)

click, mouseover and mouseout do not work properly in Firefox

Reported by: [email protected] Owned by:
Priority: major Milestone: 1.3
Component: event Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:


The following code works correctly in Safari but not in Firefox (2.0)

<script src="jquery-1.2.6.js"/>
<style type="text/css">
.highlighted {
background: #FF9;
.normal {
background: #FFF;
<script type="text/javascript">
      alert("x="+e.pageX+", y="+e.pageY);
		<div id="editBar" style="display:none">
		<button value="remove" title="remove" onclick="alert('removing');">X</button>
		<button value="edit" title="edit" onclick="alert('editing');">E</button>
<table  border="1" width="100%" id="t1">
		<td> Name </td>
		<td> Description </td>
		<td> Status </td>
		<td> Registration date </td>
		<td> Memberships </td>
		<td><input name="name.filter"/></td>
		<td><input name="description.filter"/></td>
		<td><input name="status.filter"/></td>
		<td><input name="registration.filter.from"/>
			<input name="registration.filter.to"/></td>
		<td><input name="memberships.filter"/></td>
		<tr id="t1_r1">
		<td id="t1_r1_c1">Jonathan Archer</td>
		<td>First captain of Enterprise</td>
		<td>Captains, Founders</td>	
		<td>James T. Kirk</td>
		<td>Captain of Enterprise C</td>
		<td>Captains, Founders</td>	
		<td>Jean Luc Picard</td>
		<td>Captain of Enterprise D</td>
		<td>Captains, Founders</td>	
	<button value="click" title="change" onclick="$('#t1_r1_c1').text('Captain Jack')">blabla</button>

Change History (8)

comment:1 Changed 15 years ago by flesler

Component: coreevent

Can you please describe what isn't working properly ? What problem are you experiencing ?

comment:2 Changed 15 years ago by [email protected]

None of the event handlers are called. Therefore, on both Firefox 2.0 and Firefox 3.0 the row backround is not changed and the alert never appears. It works perfectly well in Safari.

One more note. I've noticed using Firebug that the class of the row is changed but somehow this isn't visible in the display....

comment:3 Changed 15 years ago by OLAF

This is running on Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; fr; rv: Gecko/20080404 Firefox/

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN"


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Untitled</title> <script src="jquery-1.2.6.pack.js" type="text/javascript">




alert("x="+e.pageX+", y="+e.pageY);

}); $("#t1r1").mouseover(function(){

$(this).addClass("highlighted"); $(this).removeClass("normal");



$(this).addClass("normal"); $(this).removeClass("highlighted");



<tr id="t1r1">

<td id="t1r1c1">Jonathan Archer</td>


<button value="click" title="change" onclick="$('#t1r1c1').text('Captain Jack')">blabla</button>

comment:4 Changed 15 years ago by [email protected]

Thank you for your response. I've changed the code replacing the _ from the tag ids but it still doesn't work.

comment:5 Changed 15 years ago by [email protected]

I have also tested in Firefox (2 and 3) on Linux and it still doesn't work.

comment:6 Changed 14 years ago by morgan

If you still have not figured this one out. Close your script tag for the jquery include.

comment:7 Changed 14 years ago by michM

event.pageX and event.pageY return 'undefined' on Firefox 3.0.6 while working on IE7

comment:8 Changed 14 years ago by brandon

Resolution: invalid
Status: newclosed

Script tags cannot be self closing.

Note: See TracTickets for help on using tickets.