JavaScript
  Home arrow JavaScript arrow Creating JavaScript-Based Table Rulers
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

Creating JavaScript-Based Table Rulers
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-09-03

    Table of Contents:
  • Creating JavaScript-Based Table Rulers
  • Review: a cross-browser table ruler with CSS and JavaScript
  • Building a JavaScript-based table ruler
  • The table ruler application’s full source code

  • 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


    Creating JavaScript-Based Table Rulers


    (Page 1 of 4 )

    Welcome to the second chapter of a series that shows you how to create table rulers with CSS and JavaScript. This series provides you with a bunch of useful pointers that hopefully will get you started incorporating appealing table rulers into your own web sites with only minor hassles.

    Introduction

    Undeniably, a table ruler is one of the handiest mechanisms that can be used on a web site to increase the usability of HTML tables that contain numerous items. It permits users to highlight visually (generally by means of a rollover effect) the row that they are currently viewing.

    Naturally, this technique helps to prevent users from getting lost when reading data in large tables. It can be implemented in a great variety of ways, ranging from using CSS and JavaScript separately, to utilizing a balanced combination of them, particularly where it’s necessary to address certain browser incompatibilities.

    So, if you’re a web designer who’s seeking an approachable guide on how to build a table ruler by using a combination of CSS and JavaScript, you've come to the right place. First I will review the ground we covered in the previous article, and then we'll go over some new methods for creating a table ruler. 

    In the preceding article of the series, I demonstrated how to create a simple table ruler by utilizing a mixture of CSS and JavaScript. This combination will work correctly with many modern browsers. In simple terms, this table ruler was capable of changing the background color of each row within a selected HTML table. This happened every time a user placed the mouse over each row, in this manner increasing the table’s overall readability.

    As I said earlier, it’s possible to use different approaches to construct a table builder like the one described above. Therefore, in this second tutorial I’ll be explaining how to build this handy mechanism by means of unobtrusive JavaScript, which will function with most popular browsers as well.

    Now, it’s time to see how this JavaScript-based table ruler can be created in a few simple steps. Let’s get started!

    More JavaScript Articles
    More By Alejandro Gervasio


       · This second tutorial explains how to build a table ruler by means of unobtrusive...
     

    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 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek