SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: xAddEventHandler
-
Mar 9, 2004, 08:45 #1
- Join Date
- Jun 2003
- Location
- Iowa, USA
- Posts
- 3,749
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
xAddEventHandler
I had a site that used CBE for a drop and drag interface. Seeing the recent info on www.cross-browser.com regarding CBE, I was looking into how to replace with x.
When I try: http://www.cross-browser.com/x/examp...vent_test.html
I get the following in the FireFox 0.8 JS Console:
Error: xAddEventListener is not defined
Source File: http://www.cross-browser.com/x/examp...vent_test.html
Line: 25
Line 25 is:
xAddEventListener(document, 'click', obj0.onClick, false);
Any thoughts?
Thanks.Jason Sweat ZCE - jsweat_php@yahoo.com
Book: PHP Patterns
Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
Detestable (adjective): software that isn't testable.
-
Mar 9, 2004, 08:55 #2
There doesn't seem to be a function called "xAddEventListener()" in the page, nor is it in any of the two .js files that are included on that page (x_debug.js and x_core.js).
-
Mar 9, 2004, 08:58 #3
- Join Date
- Jun 2003
- Location
- Iowa, USA
- Posts
- 3,749
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Looking at the x/examples/drag1.html file from the lastest distribution, it looks like the example page on cross-browser is missing hte x_event.js include.
-
Mar 10, 2004, 08:20 #4
- Join Date
- Dec 2002
- Location
- Alabama, USA
- Posts
- 2,560
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Oops!
Yes, sweatje is correct.
I've fixed that page.
I'm afraid that page (handleEvent_test) is confusing at best. It was really just an experiment on my part.
Thanks!Cross-Browser.com, Home of the X Library
Bookmarks