JavaScript
  Home arrow JavaScript arrow Working with IDs and Classes with the Beha...
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  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
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

Working with IDs and Classes with the Behaviour JavaScript Library
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 2
    2007-03-26

    Table of Contents:
  • Working with IDs and Classes with the Behaviour JavaScript Library
  • Extending the use of CSS selectors with the Behaviour library
  • Assigning JavaScript functions by using CSS classes
  • Using IDs and classes together

  • 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


    Working with IDs and Classes with the Behaviour JavaScript Library


    (Page 1 of 4 )

    Do you want to learn how to quickly build web sites that separate visual presentation and structural markup from JavaScript code? Then you should try the powerful Behaviour package! Welcome to the second article of the series that began with "Introducing the Behaviour JavaScript Library." In a step-by-step format, this series shows you how to use the capacity offered by this software to get rid of those ugly, old-fashioned inline JavaScript routines.

    Introduction

    Stepping back for a moment to the topics that I covered in the preceding article, certainly you'll recall that in that tutorial I showed you how to utilize the neat features incorporated in the Behaviour library. They came in handy for assigning diverse functions to specific CSS selectors, without the need to deal with embedded JavaScript code.

    In consonance with this concept, I provided you with a decent set of hands-on examples, which demonstrated how to assign basic JavaScript functions to simple web page elements, such as paragraphs and links.

    However, beyond the educational sense that I originally planned to give to the referenced examples, the objective of this series is to explore the wide range of possibilities that this excellent software package can offer to many web developers. As we examine these possibilities, we'll keep in mind that the trend to write independent behavior layers has grown in popularity in the last few months.

    Therefore, since I assume that you're interested in learning more about the capacities that come bundled with Behaviour, in this second part of the series I'm going to show you how to use it to work with more complex CSS selectors, this time including IDs and classes.

    Having established the goal of this tutorial, let's continue exploring the numerous capacities of this JavaScript library. Let's get started!

    More JavaScript Articles
    More By Alejandro Gervasio


       · Over the course of this second article of the series, you'll learn how to assign...
     

    JAVASCRIPT ARTICLES

    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget
    - Ajax Hack for Entering Information Without R...
    - EXT JS 2.1 Overview
    - Using the Style Object for Zebra Tables with...
    - Binary Searching
    - An Improved Approach to Building Zebra Tables
    - Assigning Background Colors Dynamically to Z...
    - Building Zebra Tables with CSS and JavaScript
    - JavaScript: Array Objects
    - A Closer Look at Smart Markers with Yahoo! M...
    - Using Polylines and Smart Markers with Yahoo...







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway