JavaScript
  Home arrow JavaScript arrow Handling events with the DOM, part II
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Handling events with the DOM, part II
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 7
    2005-04-26

    Table of Contents:
  • Handling events with the DOM, part II
  • Assigning event handlers in NS6 and Mozilla
  • Assigning event handlers in IE5
  • Using the "attachEvent()" method: a simple drop-down menu in IE

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Handling events with the DOM, part II


    (Page 1 of 4 )

    In this second article in a three part series, we will delve more deeply into how Netscape, Mozilla, and Internet Explorer manipulate event handlers, and take a look at building a simple drop-down menu.

    Introduction

     

    Welcome back to Handling Events with the DOM. To refresh your memory a bit, in Part I, we introduced important concepts about the assignment of event handlers in Web pages, as well as a detailed look at the DOM event flow, covering in-depth definitions of Event Capture and Event Bubble. As we go deeper into this territory, numerous browser incompatibilities are still messing up a Web developer's life, adding more inconsistencies to the already long non-standard world of the Web.

     

    However, all is not lost. Efforts have been underway, particularly at the W3C, to establish common standards for all browsers. Hopefully, we’ll see browser manufacturers pointing their best efforts toward releasing better, more standards-compliant products. But, as with anything in life, time will tell. In the meantime, we must settle for using the currently available DOM proprietary methods, implemented in today’s browsers.

     

    Over this second part, we’ll be illustrating some of the most common methods offered by popular browsers to manipulate event handlers using the DOM. Let’s start finding out more about how NS6+ and Mozilla manipulate event handlers.

     

    More JavaScript Articles
    More By Alejandro Gervasio


       · In this second part, the article is focused mainly on the propietary methods offered...
     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek