By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,520 Members | 1,251 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,520 IT Pros & Developers. It's quick & easy.

DOM 2 Events

P: n/a
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/exampl...-20050909.html
http://lachy.id.au/dev/script/exampl...20050909.xhtml
http://lachy.id.au/dev/script/exampl...-20050911.html
http://lachy.id.au/dev/script/exampl...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.)

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Sep 11 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
On Sun, 11 Sep 2005 03:03:57 GMT, in comp.lang.javascript Lachlan Hunt
<sp***********@gmail.com> wrote:
| 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/exampl...-20050909.html
| http://lachy.id.au/dev/script/exampl...20050909.xhtml
| http://lachy.id.au/dev/script/exampl...-20050911.html
| http://lachy.id.au/dev/script/exampl...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();
^
--------|
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Sep 11 '05 #2

P: n/a
Lachlan Hunt wrote:
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/exampl...-20050909.html
http://lachy.id.au/dev/script/exampl...20050909.xhtml
http://lachy.id.au/dev/script/exampl...-20050911.html
http://lachy.id.au/dev/script/exampl...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();


--
Rob
Sep 11 '05 #3

P: n/a
Jeff North wrote:
On Sun, 11 Sep 2005 03:03:57 GMT, in comp.lang.javascript Lachlan Hunt
<sp***********@gmail.com> wrote:
| http://lachy.id.au/dev/script/exampl...-20050909.html


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.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Sep 11 '05 #4

P: n/a
RobG wrote:
Lachlan Hunt wrote:
http://lachy.id.au/dev/script/exampl...-20050909.html
http://lachy.id.au/dev/script/exampl...20050909.xhtml
http://lachy.id.au/dev/script/exampl...-20050911.html
http://lachy.id.au/dev/script/exampl...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


Thank you. That should have been fixed in Safari when I fixed it
Firefox. Let me know if there's any more bugs.
--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Sep 11 '05 #5

P: n/a
Lachlan Hunt wrote in message news:x8*******************@news-server.bigpond.net.au...
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/exampl...-20050909.html
http://lachy.id.au/dev/script/exampl...20050909.xhtml
http://lachy.id.au/dev/script/exampl...-20050911.html
http://lachy.id.au/dev/script/exampl...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
Sep 12 '05 #6

P: n/a

Lachlan Hunt wrote:
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/exampl...-20050909.html
http://lachy.id.au/dev/script/exampl...20050909.xhtml
http://lachy.id.au/dev/script/exampl...-20050911.html
http://lachy.id.au/dev/script/exampl...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.)

--
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, 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?

Sep 12 '05 #7

P: n/a
cw******@yahoo.com wrote:
Lachlan Hunt wrote:
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?

http://lachy.id.au/dev/script/exampl...-20050909.html
http://lachy.id.au/dev/script/exampl...20050909.xhtml
http://lachy.id.au/dev/script/exampl...-20050911.html
http://lachy.id.au/dev/script/exampl...20050911.xhtml
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.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Sep 12 '05 #8

P: n/a
Robi wrote:
Lachlan Hunt wrote in message news:x8*******************@news-server.bigpond.net.au...
http://lachy.id.au/dev/script/exampl...-20050909.html


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/archi...nt_recodi.html
--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Sep 12 '05 #9

P: n/a

Lachlan Hunt wrote:
Robi wrote:
Lachlan Hunt wrote in message news:x8*******************@news-server.bigpond.net.au...
http://lachy.id.au/dev/script/exampl...-20050909.html


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."


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.

Sep 12 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.