The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 Discuss Web Programming and Web Server Administration, 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
need script for passwd , can't use expect tool Nicol Shell Programming and Scripting 35 07-20-2009 10:00 PM
Calling a perl script from a perl script new2ss Shell Programming and Scripting 6 05-24-2009 05:03 PM
Perl: Run perl script in the current process vino Shell Programming and Scripting 10 12-09-2005 10:45 AM
Log Rotation Tool/Script yelalouf Shell Programming and Scripting 4 12-17-2003 09:27 PM
Script tool yotoruja Shell Programming and Scripting 4 10-31-2003 11:10 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-24-2008
garric garric is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 99
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
  #2 (permalink)  
Old 07-24-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
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.
  #3 (permalink)  
Old 07-24-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
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.
  #4 (permalink)  
Old 07-25-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

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

Last edited by era; 07-25-2008 at 02:10 AM..
  #5 (permalink)  
Old 07-25-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
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.
  #6 (permalink)  
Old 07-26-2008
garric garric is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 99
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?
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0