473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DOM 2 Events

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
9 1645
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
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
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
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
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

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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sasha | last post by:
Hi everyone, Here is my problem: I have the following classes: - DataNode - this class is designed to hold some data and will be contained in a tree like data structure DataTree. When...
6
by: Saso Zagoranski | last post by:
Hi! How can I unregister all the events registered to a control? I have seen a piece of code in another thread, which gets all the registered handlers for a specific event. Let's say I have a...
14
by: JPRoot | last post by:
Hi I use the following syntax to have events inherited from base to child classes which works nicely (virtual and override keyword on events). But I am wondering if it is a "supported" way of using...
2
by: Bob Rundle | last post by:
I have the following code, which appears to be working. However it doesn't look right. The part I am wondering about is the logic in DisconnectEvents(). This logic creates a new delegate and...
4
by: LP | last post by:
Hello! I am still transitioning from VB.NET to C#. I undertand the basic concepts of Delegates, more so of Events and somewhat understand AsyncCallback methods. But I need some clarification on...
11
by: Nicky Smith | last post by:
Hello, I'm studying a book on VB.net Win apps, and I'm reading a section on events and delegates and raising events. Is it just me, or is this not just subs dressed up as something else? I...
30
by: Burkhard | last post by:
Hi, I am new to C# (with long year experience in C++) and I am a bit confused by the language construct of events. What is it I can do with events that I cannot do with delegates? At the moment...
5
by: Richard Maher | last post by:
Hi, Here I mean "User" in the Programmer or Javascript sense. I merely wish to programmatically trigger an Event. It would be absolutely fantastic if there was a (Form level?) ONUSEREVENT() and...
14
by: xoozlez | last post by:
Hi there, I have a registration form where I like to filter out the past events of 2007. This is the code I am using : strSQL = "SELECT EventID, EventName, EventDateBegin, EventDateEnd,...
1
by: swethak | last post by:
Hi, I am desiging the calendar application for that purpose i used the below code. But it is for only displys calendar. And also i want to add the events to calendar. In that code displys the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.