JavaScript
  Home arrow JavaScript arrow Building Controls with JavaScript and the ...
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  
Actuate Whitepapers 
Moblin 
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

Building Controls with JavaScript and the Yahoo Button Control
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2007-11-27

    Table of Contents:
  • Building Controls with JavaScript and the Yahoo Button Control
  • Building Yahoo! Control buttons using non existing (X)HTML
  • Using JavaScript and Yahoo! Button Controls to work with checkboxes
  • Using the Yahoo! Button Control to build some basic radio buttons

  • 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Building Controls with JavaScript and the Yahoo Button Control


    (Page 1 of 4 )

    As you probably heard, last year Yahoo released a mature DTHML library called “Yahoo UI.” It contains an impressive number of pre-built user interface components or widgets, such as calendars and rich text editors, color pickers and drop-down menus, along with other handy stuff. More specifically speaking, there’s one widget included with this package, called the “Yahoo Button Control,” which can be quite useful for building professional-looking buttons, and even entire navigational menus, by using only a few lines of JavaScript code and structural markup.

    Introduction

    Welcome to the second part of the series that began with “A Close Look at the Yahoo! Button Control.” This series provides you with a friendly guide to working with the Yahoo! Button Controls, and also offers numerous code samples so you can start quickly incorporating these widgets into your own web sites.

    Now that I have introduced the subject of this series, and assuming that you already read the first tutorial, then I believe that building simple buttons using the Yahoo! Button Control is now a familiar process to you. It's very easy to grasp. As I demonstrated in detail during the preceding article of the series, these buttons can be rapidly built by including different <input> tags into any web document, and then creating an instance of the “YAHOO.widget.Button” class with JavaScript.

    From that point onward, it’s perfectly possible to display several types of controls, such as radio buttons and checkboxes, which logically use the polished skins offered by the Yahoo UI library. Quite simple, right?

    Well, as I expressed before, so far you learned how to create a certain number of button controls by utilizing some existing “<input>” tags. However, the Button Control widget is quite flexible, and in addition, it can be created directly via JavaScript, without having to code any additional markup.

    Since you may want to learn how to build different Button Controls using a few lines of JavaScript code, in this second article of the series I’ll provide you with numerous examples on how to achieve this task as painless as possible.

    Now that you know what this article is about, it’s time to analyze different approaches to including a few Button Controls into any web document. Let’s begin now!

    More JavaScript Articles
    More By Alejandro Gervasio


       · In the last article of the series, you saw for yourself how easy is to build a...
       · Thanks so much for this articles.
       · Thank you for the compliments on my articles on Yahoo! Button controls and I hope...
     

    JAVASCRIPT ARTICLES

    - 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...
    - Bulleted Menu of Links
    - Creating Click Loggers and Basic Markers wit...
    - Adding Pan Controls to Yahoo! Maps







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