Home arrow JavaScript arrow Building Controls with JavaScript and the Yahoo Button Control
JAVASCRIPT

Building Controls with JavaScript and the Yahoo Button Control


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.

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 3
November 27, 2007
TABLE OF CONTENTS:
  1. · Building Controls with JavaScript and the Yahoo Button Control
  2. · Building Yahoo! Control buttons using non existing (X)HTML
  3. · Using JavaScript and Yahoo! Button Controls to work with checkboxes
  4. · Using the Yahoo! Button Control to build some basic radio buttons

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Building Controls with JavaScript and the Yahoo Button Control
(Page 1 of 4 )

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!


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks
- Dynamic jQuery Styling

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 9 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials