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  
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

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


    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

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