The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
Google UNIX.COM


Web Programming, Web 2.0 and Mashups New forum all about Web Programming including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Calling a perl script from a perl script new2ss Shell Programming and Scripting 3 02-06-2007 07:17 PM
Perl: Run perl script in the current process vino Shell Programming and Scripting 10 12-09-2005 06:45 AM
need script for passwd , can't use expect tool Nicol Shell Programming and Scripting 26 06-23-2005 06:12 PM
Log Rotation Tool/Script yelalouf Shell Programming and Scripting 4 12-17-2003 05:27 PM
Script tool yotoruja Shell Programming and Scripting 4 10-31-2003 07:10 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2008
Registered User
 

Join Date: Apr 2006
Posts: 89
Stumble this Post!
Tool Tip on a Perl CGI script

Hi,

I am writing a perl script using Perl CGI. There are various HTML tables and forms involved in this. Now I wanted to add a tool tip to the elements here but I am not able to find documentation on how to do it. Can anyone help?

Thanks in advance.

Regards,
garric
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-24-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,160
Stumble this Post!
I'm not exactly sure if this can be of any help, but let me try
I found it after someone's claim that there will be such perl module available in CPAN, but I couldn't find such.
Reply With Quote
  #3 (permalink)  
Old 07-24-2008
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,432
Stumble this Post!
Depends how you would like to get the tool tips to appear, and on what kinds of elements. There are mostly two ways I can think of: plain HTML or Javascript/DHTML.

For instance, on many HTML elements you can use the 'title' tag attribute and many browsers will render its value as a tool tip. However, in the past I have used this on image and anchor. Not tried on other elements.

Otherwise, some people may use some Javascript/DHTML that dynamically creates a floating object containing the text at the given mouse location (as captured by the onmouseover event listener). However, this requires the browser with Javascript enabled and the script may be browser-dependent (to some extent). The javascript library listed is an example.

This does not have much to do with Perl, so it is not at all surprising that you are unable to dig anything up in the Perl docs.
Reply With Quote
  #4 (permalink)  
Old 07-24-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
Stumble this Post!
The basic technique is to use CSS. Something like the dotted underlines in HTML 4.01 Tutorial : Borders perhaps?

Last edited by era; 07-24-2008 at 11:10 PM.
Reply With Quote
  #5 (permalink)  
Old 07-25-2008
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,432
Stumble this Post!
Quote:
Originally Posted by era View Post
The basic technique is to use CSS. Something like the dotted underlines in HTML 4.01 Tutorial : Borders perhaps?
It has nothing to do with the CSS but the tooltip is due to the "title" attribute applied to the HTML, as mentioned. But still, it is up to the browser to decide whether a "title" attribute causes a tooltip to be displayed, although it is normally the case. So it is up to the original poster to think whether the "title" attribute is what is needed.
Reply With Quote
  #6 (permalink)  
Old 07-25-2008
Registered User
 

Join Date: Apr 2006
Posts: 89
Stumble this Post!
Thanks for the replies..

I am looking for some dynamic and some static tool tips. For example, if I point to a particular entry in a html table, I want to be able to query some for some information and show it on a tool tip.

@sysgate: Is that javascript module you have suggested copyrighted? Can it be resued?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0