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

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


    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

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