DOM 2 Events

L

Lachlan Hunt

Hi,
I've written some javascript to implement DOM 2 Events in IE
(addEventListener, removeEventListener, etc) and I would like to know
which browsers it works in. I've tested it in Firefox 1.0.6, Deer Park
Alpha 2, Opera 8.02 and IE6 and IE7 Beta 1, all on WinXP SP2.

Could some of you please take a look at the test pages in any browser
you have available to you, and let me know if it works or if you
encounter any problems? If possible, include a description of any
script errors you get and if you can suggest a fix, that would be very
appreciated.

http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050909.html
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050909.xhtml
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050911.html
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050911.xhtml

(The .xhtml and .html variants for both are identical, except for the
MIME type. It shouldn't make any difference to the script, it was
designed to support both, but test it just incase.)
 
J

Jeff North

| Hi,
| I've written some javascript to implement DOM 2 Events in IE
| (addEventListener, removeEventListener, etc) and I would like to know
| which browsers it works in. I've tested it in Firefox 1.0.6, Deer Park
| Alpha 2, Opera 8.02 and IE6 and IE7 Beta 1, all on WinXP SP2.
|
| Could some of you please take a look at the test pages in any browser
| you have available to you, and let me know if it works or if you
| encounter any problems? If possible, include a description of any
| script errors you get and if you can suggest a fix, that would be very
| appreciated.
|
| http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050909.html
| http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050909.xhtml
| http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050911.html
| http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050911.xhtml
|
| (The .xhtml and .html variants for both are identical, except for the
| MIME type. It shouldn't make any difference to the script, it was
| designed to support both, but test it just incase.)


Firefox 1.06
Error: missing variable name
Source File: http://lachy.id.au/dev/script/examples/DOM/DOM.js
Line: 17, Column: 6
Source Code:
var interface = new Element();
^
--------|
 
R

RobG

Lachlan said:
Hi,
I've written some javascript to implement DOM 2 Events in IE
(addEventListener, removeEventListener, etc) and I would like to know
which browsers it works in. I've tested it in Firefox 1.0.6, Deer Park
Alpha 2, Opera 8.02 and IE6 and IE7 Beta 1, all on WinXP SP2.

Could some of you please take a look at the test pages in any browser
you have available to you, and let me know if it works or if you
encounter any problems? If possible, include a description of any
script errors you get and if you can suggest a fix, that would be very
appreciated.

http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050909.html
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050909.xhtml
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050911.html
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050911.xhtml

Loading the first link in Safari 1.0.3 (Mac OS X 10.2.8) gives:

http://lachy.id.au/dev/script/examples/DOM/DOM.js:18: SyntaxError -
Parse error at line 18


Firefox 1.0.4 on same OS X box on page load gives:

Error: missing variable name
Source File: http://lachy.id.au/dev/script/examples/DOM/DOM.js
Line: 17, Column: 6
Source Code:
var interface = new Element();
 
L

Lachlan Hunt

Jeff said:
Firefox 1.06
Error: missing variable name
Source File: http://lachy.id.au/dev/script/examples/DOM/DOM.js
Line: 17, Column: 6
Source Code:
var interface = new Element();
^

Oops, I didn't catch that regression. It used to work, I must have had
deer park open when I thought I opened Firefox to test. That part of
the code isn't supposed to be executed by anything by IE. So, I wrapped
it in some conditional compilation comments (I hope nothing but IE uses
those), so that's now Fixed in Firefox and it works for me.
 
R

Robi

Lachlan Hunt wrote in message news:[email protected]...
Hi,
I've written some javascript to implement DOM 2 Events in IE
(addEventListener, removeEventListener, etc) and I would like to know
which browsers it works in. I've tested it in Firefox 1.0.6, Deer Park
Alpha 2, Opera 8.02 and IE6 and IE7 Beta 1, all on WinXP SP2.

Could some of you please take a look at the test pages in any browser
you have available to you, and let me know if it works or if you
encounter any problems? If possible, include a description of any
script errors you get and if you can suggest a fix, that would be very
appreciated.

http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050909.html
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050909.xhtml
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050911.html
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050911.xhtml

on all, in FF 1.0.6, the mouseout event isn't always fired, which
means item "submenues" stay shown while another submenu is being displayed.

I also had the strange case when I clicked on the "border effect" link while
the submenu(s) didn't hide that the border started to show and remain on all
the list items.

sorry
 
C

cwdjrxyz

Lachlan said:
Hi,
I've written some javascript to implement DOM 2 Events in IE
(addEventListener, removeEventListener, etc) and I would like to know
which browsers it works in. I've tested it in Firefox 1.0.6, Deer Park
Alpha 2, Opera 8.02 and IE6 and IE7 Beta 1, all on WinXP SP2.

Could some of you please take a look at the test pages in any browser
you have available to you, and let me know if it works or if you
encounter any problems? If possible, include a description of any
script errors you get and if you can suggest a fix, that would be very
appreciated.

http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050909.html
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050909.xhtml
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050911.html
http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-20050911.xhtml

(The .xhtml and .html variants for both are identical, except for the
MIME type. It shouldn't make any difference to the script, it was
designed to support both, but test it just incase.)

I checked 3 close relatives of IE6. These were MSN9, Avant version 10
build 158, and MyIE2 version 0.9.27.68. All of these acted the same as
IE6. They can handle the 2 .html pages, but show you the source code
for the .xhtml pages.

The W3C's Amaya just showed the main items on all pages, and nothing
would work. This special browser does not have script support.

The old Netscape 4.8 showed all items and subitems on the .html pages,
but nothing worked.

I am using Windows XP with all upgrades including SP2. I did not view
with some of the browsers for which you have had reports or mentioned
that you had.

I noted that you tested the new IE7 Beta 1. I have heard a rumor that
IE7 will not support application/xhtml+xml for the extension .xhtml.
Nearly all of the major browsers, except IE6, now support this. Are you
free to tell us if IE7 Beta 1 will support the mentioned mime type and
thus true xhtml delivered as such?
 
L

Lachlan Hunt

I checked 3 close relatives of IE6. These were MSN9, Avant version 10
build 158, and MyIE2 version 0.9.27.68. All of these acted the same as
IE6. They can handle the 2 .html pages,

I expected as much, since they embed the same rendering engine.
but show you the source code for the .xhtml pages.

Yeah, well, can't expect browsers based on IE to support XHTML any more
than you can expect IE itself too.
The old Netscape 4.8 showed all items and subitems on the .html pages,
but nothing worked.

I tried Netscape 4.75 earlier, with very bad results. Although, I'd
rather focus on browsers that are actually in use these days, before I
fix for that old relic..
I noted that you tested the new IE7 Beta 1. I have heard a rumor that
IE7 will not support application/xhtml+xml for the extension .xhtml.

At the moment, IE7 doesn't support much at all and I've seen no
indication that XHTML will be supported in a future release. The best
place to keep up with info about IE7 is probably the IE blog, where they
often discuss such issues.

Thanks for your feedback.
 
L

Lachlan Hunt

Robi said:
Lachlan Hunt wrote in message news:[email protected]...

on all, in FF 1.0.6, the mouseout event isn't always fired, which
means item "submenues" stay shown while another submenu is being displayed.

I also had the strange case when I clicked on the "border effect" link while
the submenu(s) didn't hide that the border started to show and remain on all
the list items.

Yeah, I believe that is a problem with the script written by PPK for the
contest, not my script specifically, as the same problem occurs for all
entries. He also mentions in the article that "The mouseout functions
on the example page don't work perfectly, but for the contest that
doesn't matter."

http://www.quirksmode.org/blog/archives/2005/09/addevent_recodi.html
 
C

cwdjrxyz

Lachlan said:
Yeah, I believe that is a problem with the script written by PPK for the
contest, not my script specifically, as the same problem occurs for all
entries. He also mentions in the article that "The mouseout functions
on the example page don't work perfectly, but for the contest that
doesn't matter."

I also get the same response on the Firefox 1.0.6. I thus checked on
the Mozilla 1.7.11 and the Netscape 7.2. About the same thing happpens
on them, so it seems to be a family affair. However one should not
assume that these 3 browsers always act the same. For one difference,
Netscape 7.2 comes with ActiveX support for the WMP only installed.
There are plugins for this for Mozilla and Firefox, but many casual
users of these browsers would find installing these plugins a bit
difficult, if they knew about them at all.

Slow release after a mouse event can be a problem on some other
browsers. For instance, if you are a member of the Netflix DVD mail
rental service in the US, you can view the movie list and get a popup
description of the movie on mouseover. Even when you use IE6, the
descriptions are sometimes slow to release when you move the mouse away
from the movie name and you sometimes have to click something to get
them to release.

While on Netscape, I found that they have released the new Netscape 8.
I probably will download it, although I did not appreciate the AOL
offer icon that Netscape put on my desktop after downloading the 7.2
many months ago. I thought the 7.2 might be the last Netscape browser,
since so few use Netscape anymore.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,281
Latest member
Pedroaciny

Latest Threads

Top