JavaScript
  Home arrow JavaScript arrow Page 2 - Rich Internet Applications with Dojo Toolk...
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  
Moblin 
JMSL Numerical Library 
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

Rich Internet Applications with Dojo Toolkit 101
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 10
    2007-01-17

    Table of Contents:
  • Rich Internet Applications with Dojo Toolkit 101
  • Displaying a simple button
  • Adding an event and styling
  • The DatePicker and Accordion widgets
  • How do the widgets look in various browsers?

  • 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


    Rich Internet Applications with Dojo Toolkit 101 - Displaying a simple button


    (Page 2 of 5 )

    The controls in the HTML pages that you are going to develop will use the widgets developed in the toolkit and are all documented in the widget folder of the source code. The next picture shows the expanded view of the widget folder. As you can see, there are various .js files which include the DatePicker, Button, and AccordionContainer related files. The various .js files are required for the functionality of the controls, the various events raised, the various functions and so on. The reader is encouraged to open the .js files in Word and review their contents.

    Adding a dojo button object to the page

    The following code may be used in displaying a default button in the dojo tool kit. The necessary scripts are in the <head /> section of the file. The dojo.require() adds the required reference to the control. In this way only necessary references are included.

    <HTML> 
    <HEAD> 
    <TITLE> </TITLE>
    <script type="text/javascript">
    var djConfig = {isDebug: true};
    </script>
    <SCRIPT type="text/javascript" src="http://localhost/DoAjax/dojo.js"> 
    </script> <script type="text/javascript"> dojo.require("dojo.widget.Button"); </script> </HEAD> <body> <h2>Test</h2> <button dojoType="button" >Hi Dojo!</button> </body> </HTML>

    This file when browsed with IE 7.0 displays the button as shown in the picture. It is a very nice looking button indeed!

    More JavaScript Articles
    More By Jayaram Krishnaswamy


       · This is my first article and many more will follow. Before I could post the initial...
     

    JAVASCRIPT ARTICLES

    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - 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...







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