Firefox ignores Javascript code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firefox (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: firefox
Version: Firefox 2.0.0.4 on Ubuntu 7.04
No warning is issued.
The code below worked then ceased to work without warning. When the cursor moves over the DIV.scroller, the opacity must be set back to 1 (fully opaque) and a click on the revealed area should execute the associated function (which move DIV#area aroud).
Toggling the switch for Javascript in Preferences did solve twice the problem then it reappeared. Closing Firefox and restarting it does not cure the problem !
I also tried the same code with the Javascript stored in an external file, but again, no difference.
I had various add-ons installed (Firebug 1.05, Web Developer 1.1.4 along with EasyGesture and FireColor). To find out why, I completely uninstalled those add-ons without result.
Even if it looks stupid to say (every user says so), I didn't change Preferences prior to the problem, I just installed the above add-ons ! The reason I submit here is because the code worked sometimes then abruptly ceased to work.
If I dare to guess, I would say aither one add-on or Firefox has changed one inner flag which tells Firefox to ignore events and/or Javascript.
If the trouble is due to a fault I made in the code, I deeply apologize for taking your time !
Page: each DIV is positioned on the page
<html>
<head>
<link rel='stylesheet' href='layout.css' type='text/css' />
<title>Test Lay-out (2)</title>
<script type="text/
function toTop(e)
{
var tref = document.
}
function moveView(e,dir)
{
var tref = document.
var abtm = tref.style.top + tref.style.height ;
var trf2 = document.
var vbtm = trf2.style.top + trf2.style.height ;
if( dir < 0 && abtm < vbtm )
if( dir > 0 && tref.style.top < 125 )
}
</script>
</head>
<body>
<div class="mask upper"> </div>
<div class="mask lower"> </div>
<div class="hdr back"> </div>
<div class="hdr band"> </div>
<div class="hdr label"> </div>
<div class="logo"><img src="station.png" height=130></div>
<div class="menu mnback"
<div class="mnbar mb1"> </div>
<div class="mnbar mb2"> </div>
<div class="mnbar mb3"> </div>
<div class="
<div id="gotop" class="scroller"
<img src="top.png" width=24></div>
<div id="goup" class="scroller"
<img src="upward.png" width=24></div>
<div id="godown" class="scroller"
<img src="downward.png" width=24></div>
<div id="view"></div>
<div id="area"
</body>
</html>
ProblemType: Bug
Architecture: i386
Date: Sun Jun 17 19:53:19 2007
DistroRelease: Ubuntu 7.04
Package: firefox 2.0.0.4+1-0ubuntu1
PackageArchitec
SourcePackage: firefox
Uname: Linux tsikinga 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux
Having trouble understanding what this code is supposed to do. Please provide a watered down test case. You may also wish to file this bug upstream at http:// bugzilla. mozilla. org/ instead.