From: Lachlan Hunt on
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.)

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
From: Jeff North on
On Sun, 11 Sep 2005 03:03:57 GMT, in comp.lang.javascript Lachlan Hunt
<spam.my.gspot(a)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/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();
^
--------|
---------------------------------------------------------------
jnorthau(a)yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
From: RobG on
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/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();




--
Rob
From: Lachlan Hunt on
Jeff North wrote:
> On Sun, 11 Sep 2005 03:03:57 GMT, in comp.lang.javascript Lachlan Hunt
> <spam.my.gspot(a)gmail.com> wrote:
>>| http://lachy.id.au/dev/script/examples/DOM/demo/mouse-events-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
From: Lachlan Hunt on
RobG wrote:
> Lachlan Hunt wrote:
>> 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

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
 |  Next  |  Last
Pages: 1 2
Prev: Hide / Show form Elements.
Next: Need help with eval()