JavaScript
  Home arrow JavaScript arrow Using Multiple Selectors with the Behaviou...
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  
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

Using Multiple Selectors with the Behaviour JavaScript Library
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2007-04-02

    Table of Contents:
  • Using Multiple Selectors with the Behaviour JavaScript Library
  • Handling multiple elements of a web document
  • Working with nested elements of a web page
  • Handling secondary links

  • 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


    Using Multiple Selectors with the Behaviour JavaScript Library


    (Page 1 of 4 )

    Building a web site whose structure separates the behavioral layer from visual presentation and markup can be difficult. If you've already lived through that painful experience, you'll welcome a software package that may change that forever. Welcome to the final installment of a series focusing on the Behaviour JavaScript library. This three-part article series teaches you how to use this powerful software to separate your JavaScript routines from your fancy markup.

    Introduction

    If you already read the first article of this series, then I suppose that using the Behaviour package is something that has become quite familiar to you. As you’ll certainly remember, this JavaScript library comes equipped with a pretty intuitive API, which allows you to quickly assign custom functions to any elements included into a web document by using a diverse range of CSS selectors.

    One of the strongest points of Behaviour rests upon the ease with which you can use it to create entire JavaScript layers which are completely separated from the corresponding structural markup. Undoubtedly, this feature encourages web developers to acquire good coding habits and achieve unobtrusive JavaScript programming.

    All right, after reading this brief introduction, I believe that you’re already prepared to continue exploring the useful -- and numerous -- capabilities that come bundled with this package. Therefore, over the course of this final article of the series, I’m going to show you some additional examples of how to use Behaviour to assign custom JavaScript functions to multiple elements of a web page, as well as how to work with multiple CSS selectors.

    Ready to learn how these hands-on examples will be developed? Okay, let’s get started!

    More JavaScript Articles
    More By Alejandro Gervasio


       · In this final tutorial of this three-part series, you'll learn how to use multiple...
     

    JAVASCRIPT ARTICLES

    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - 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






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT