Javascript incoherence
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firefox-3.0 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: firefox
Hi,
My apologies if the bug has already been reported, or if it's my fault, but i'm almost sure it's not.
The incoherence i've noticed is the following :
I'm trying to generate a div, on which i can perform dragging.
If I use the following line :
div.onmousemove = function() {dragDiv(nbTextBox, this, event)}
firefox doesn't know the "event" variable.
Wheras if I use
div.setAttribut
ProblemType: Bug
Architecture: i386
Date: Thu May 17 04:39:11 2007
DistroRelease: Ubuntu 7.04
Package: firefox 2.0.0.3+1-0ubuntu2
PackageArchitec
SourcePackage: firefox
Uname: Linux Chouquettosaurus 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux
Changed in firefox: | |
assignee: | nobody → mozilla-bugs |
I dont think i understand your saying that div.onmousemove = function() {dragDiv(nbTextBox, this, event)} should work but doesnt? Why should it work?