JavaScript
  Home arrow JavaScript arrow The Accordion Component in the AJAX Contro...
IBM developerWorks
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

The Accordion Component in the AJAX Control Toolkit
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 12
    2007-03-20

    Table of Contents:
  • The Accordion Component in the AJAX Control Toolkit
  • The Accordion Component
  • Creating a web page displaying an Accordion
  • The design view of the Accordion
  • The page displayed on the browser

  • 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

    The Accordion Component in the AJAX Control Toolkit


    (Page 1 of 5 )

    The Accordion component is one of the many components in the AJAX Control Toolkit (ACT). The ACT is a Microsoft Community project built upon ASP.NET 2.0 AJAX Extensions and will be a repository of web-client components.

    The ASP.NET 2.0 AJAX extensions can be downloaded from the Microsoft site. If you installed ATLAS make sure you remove it before running the executable to install the ASP.NET 2.0 AJAX Extensions. The message when you try to install the extensions will only tell you to remove the earlier version; it does not say ATLAS explicitly.

    The Accordion

    The Accordion is a component the like of which you have seen in my earlier article. It is basically a container for a number of panes. The pane has a header and  content. When the accordion is displayed on the web page, only the content of one of the panes will be displayed, along with the headers of the others. You could go to any of the other panels by clicking on one of the headers. This brings up the content of that header while closing the existing content. An example of the accordion from my earlier article which used the DOJO Toolkit 0.4.0 version is displayed in the next picture.

    About this tutorial

    This tutorial describes some of the features of the ACT as well as the AJAX extensions. The installation of the toolkit is described, followed by the procedure for designing an Accordion from scratch. The tutorial duplicates the design used in the earlier article, which means at the finish of the design, the result of that article is reproduced. The tutorial uses Visual Studio Professional Edition installed on a machine running Windows XP Professional Media Center Edition. The tutorial is developed side-by-side with the example site of the ACT.

    The AJAX Extensions and the ACT Components

    After installing the extensions, the folder was placed on the desktop and the solution file in the folder was brought up in VS 2005. The Trust Level ="medium" set by Microsoft for the sample web site precluded using the folder as a virtual directory.

    The ACT Components

    The various components that are bundled with the download are shown in the next picture.

    The Accordion consists of three components: the Accordion, AccordionControlPanel and the AccordionPane. For the purposes of this tutorial the Accordion and the AccordionPane will be used. These components can be dragged from their location and dropped onto a web page, like all other Microsoft controls.

    More JavaScript Articles
    More By Jayaram Krishnaswamy


       · It does work well in IE 7.0, but there are some display problems in the other...
     

    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 3 hosted by Hostway