Closed Bug 22835 Opened 25 years ago Closed 25 years ago

unable to capture Event.Resize

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: rudeop, Assigned: mike+mozilla)

References

()

Details

I've written a dHTML page that is viewable in both Netscape 4.x and IE in
Windows. However, it has never worked correctly in Linux. I've had innumerable
reports from users of the site about it. The most recent is for the M12
browser. This is an excerpt from the mail the user sent to me:

> I am using M12 now, but when I used to use M3-10
> http://www.skapunx.net would crash mozilla, but now it just reports a
> javascript error:
>
> JavaScript Error: can't convert Event.Resize to an integer
> URL: http://www.skapunx.net/
> LineNo: 55
>
> JavaScript Error: uncaught exception: [Exception... "Parameter is not a
> number"
> code: "1005" nsresult: "0x805303ed
> (NS_ERROR_DOM_NOT_NUMBER_ERR)"  location: "http://www.skapunx.net/
> Line: 55"]
>
> Document http://www.skapunx.net/ loaded successfully

The line (or lines) that is (are) causing the bug are as follows:

  window.captureEvents(Event.Resize);
  window.onresize = position;

After looking at the netscape developer page for JavaScript, I noticed that in
the example it gave, the event name was actually Event.RESIZE, so I have since
changed it. It's my understanding, however, that that should not matter.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
JavaScript is a case sensitive language, so Event.Resize and Event.RESIZE are
not the same thing.

Marking INVALID.
vrfy invalid
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.