473,796 Members | 2,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DOM 2 Events

Hi,
I've written some javascript to implement DOM 2 Events in IE
(addEventListen er, removeEventList ener, 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 1665
On Sun, 11 Sep 2005 03:03:57 GMT, in comp.lang.javas cript Lachlan Hunt
<sp***********@ gmail.com> wrote:
| Hi,
| I've written some javascript to implement DOM 2 Events in IE
| (addEventListen er, removeEventList ener, 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******@yourpa ntsyahoo.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
(addEventListen er, removeEventList ener, 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.javas cript 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******** ***********@new s-server.bigpond. net.au...
Hi,
I've written some javascript to implement DOM 2 Events in IE
(addEventListen er, removeEventList ener, 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
(addEventListen er, removeEventList ener, 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******** ***********@new s-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******** ***********@new s-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
2038
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 DataNode is changed, it raises "Changed" event. The class has a reference to the DataNode it is being contained in: - DataTree - tree like data structure that contains DataNodes; When
6
13245
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 CustomTextBox : TextBox, which has quite a lot of events... Do I put unregistering code for all the possible events in the Dispose method? Or is there another way?
14
12149
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 events since I never saw it used anywhere in MSDN documentation/samples?! Or it will just break when I upgrade to .NET Framework 2.x in the coming years namespace MyNamespac public delegate void MyDel() public class MyBase public virtual...
2
1853
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 then expects to find that delegate in the list of event handlers. What is the proper way of writing this? Regards, Bob Rundle
4
22891
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 when to use one over another? If anyone could provide any additional info, your comments, best practices, any good articles, specific examples, etc. Thank you
11
1886
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 mean, for one, delegates point to subs, so when you call a delegate, why not just call the sub dierectly and not bother adding the extra code involved adding the delegate?
30
3660
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 it seems to me that Microsoft has developed similar functionality via two keywords. I do understand that an event offers better encapsulation as the underlying delegate is private, but is that all ? -- Regards
5
4383
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 a setEvent() function but, in the absence of this, is it not possible to use DOM to change an object's properties resulting in a state-change event? I have tried with ONCHANGE() and that only seems to work if the "interactive" user changes the...
14
2223
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, EventTimeBegin, Category FROM Events WHERE EventDateBegin >'01/01/2008' AND Events.Category LIKE '3' OR Events.Category LIKE '4' OR Events.Category LIKE '5' OR Events.Category LIKE '6' OR Events.Category LIKE '7' OR Events.Category LIKE '8' OR...
1
4910
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 events when click on that date that perticular event displyed in a text box.But my requirement is to when click on that date that related event displyed in same td row not the text box. and also i add the events to that calendar.plz advice how to...
0
9524
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10168
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9047
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.