JavaScript
  Home arrow JavaScript arrow Using the jQuery Tooltip Plug-in`s bodyHan...
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

Using the jQuery Tooltip Plug-in`s bodyHandler Argument
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-11-02

    Table of Contents:
  • Using the jQuery Tooltip Plug-in`s bodyHandler Argument
  • Review: the top and left parameters
  • Adding HTML markup to tooltips with the bodyHandler input argument
  • Displaying the markup contained in web page links

  • 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


    Using the jQuery Tooltip Plug-in`s bodyHandler Argument


    (Page 1 of 4 )

    In this fifth installment of a seven-part series on the jQuery Tooltip plug-in, I discuss the use of the “bodyHandler” argument. It can be really useful for injecting HTML code into tooltips, thus altering their default visual appearance and behavior.

    Introduction

    Among the numerous plug-ins available nowadays for the jQuery library, there's one that might be particularly appealing to many web designers because of its flat learning curve and extremely simple configuration. Naturally, I'm talking about the "Tooltip" plug-in. It's a small, handy application that permits you to display professional-looking pop-up notes next to targeted web page links by using only a single JavaScript method called "tooltip()," which must be invoked with the proper incoming parameters.

    So, if you're curious about how to incorporate this helpful plug-in into your own web site to enhance its functionality, then in this group of articles you'll find a comprehensive guide that will show you how to work with tooltips in a truly effortless fashion.

    And now that you know what to expect from this series of tutorials, it'd be useful summarize the topics that were discussed in the last article. In that part of the series, I used a couple of hands-on examples to help explain how to use the "top" and "left" arguments of the Tooltip plug-in to modify the respective default coordinates where they're displayed on screen.

    Utilizing these parameters in a concrete case is a process very similar to assigning "left" and "top" CSS properties to elements of a web page, meaning that you shouldn't have major problems understanding how they work in a real-world example. However, as I said in previous articles, the Tooltip plug-in comes equipped with other arguments that can help to customize the visual appearance and behavior of tooltips even further.

    So, in this fifth chapter of this series, I'm going to discuss the usage of the "bodyHandler" parameter. It can be used for injecting HTML code directly into the tooltips in question. First, I'll be developing some basic examples that will demonstrate how to implement this new argument, and then, once you've grasped its logic, I'll proceed to create more useful code samples.

    Now, it's time to leave the preliminaries behind and start learning how to use the handy "bodyHandler" argument. Let's jump in!

    More JavaScript Articles
    More By Alejandro Gervasio


       · This fifth chapter of this series discusses the usage of the "bodyHandler" parameter...
     

    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