JavaScript
  Home arrow JavaScript arrow Page 2 - How to Use the Dojo Tooltip Widget
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

How to Use the Dojo Tooltip Widget
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 15
    2007-01-23

    Table of Contents:
  • How to Use the Dojo Tooltip Widget
  • Tooltip in HTML
  • Creating a tooltip for objects
  • Getting some color into the tooltip
  • How about an image in the tooltip?
  • The default style of dojoType tooltip
  • Creating a tooltip dynamically

  • 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


    How to Use the Dojo Tooltip Widget - Tooltip in HTML


    (Page 2 of 7 )

    Here are a few examples from some of the current web page sources that use the title attribute of HTML. They are mostly used in the title attribute of some structural elements, more often for hyperlinks. When used in the context of a link's attribute they can reference an external style sheet. Please refer to HTML's DTD document at W3C. A related attribute of an image, ALT, also pops up a window describing the image. While it does so in many browsers, the idea of using ALT was to display a textual description of the image when the image could not be loaded or found for some reason. This is mostly neglected in most browsers, and shows the image and the alt message at the same time. Since HTML is very forgiving, authors have a free ride.

    <a title="Play" href="#top" onClick="startRotateContent()">
    

    <input type="text" maxlength="75" class="home-searchbox" 
    id="question_box" name="question_box" value="" alt="Question or phrase to search."
    title="Get answers fast. Type in a question or phrase.">

    Tooltips in dojo

    Please refer to the previous article on how to work with dojo and how to reference the external script files that are part of the dojo download. The JavaScript for tooltips is found in the Tooltip.js file as shown.

    and the file location on the drive is at [C:\inetpub\wwwroot\DojoAjax\widget\Tooltip.js]. Tooltip style properties are defined in the CSS file at: C:\inetpub\wwwroot\DojoAjax\src\widget\templates\TooltipTemplate.css.

    More JavaScript Articles
    More By Jayaram Krishnaswamy


       · That is correct. No more drab looking tooltip. You can put anything you want,...
       · Thanx for writing this, I really needed an explanation of how to use it. But...
     

    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