SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    eschew sesquipedalians silver trophy sweatje's Avatar
    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.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    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).

  3. #3
    eschew sesquipedalians silver trophy sweatje's Avatar
    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.

  4. #4
    I'll take mine raw silver trophy MikeFoster's Avatar
    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!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •