Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ListBox Tooltip

Reply
Thread Tools

ListBox Tooltip

 
 
=?Utf-8?B?Y2Q=?=
Guest
Posts: n/a
 
      12-06-2005
Is it possible to add a tool tip to an asp .net listbox control utilizing
javascript or another method? I would like to add a tooltip when the user
hovers over the item in the listbox. I was seeking a code sample.

Thank you,
--
Christopher
 
Reply With Quote
 
 
 
 
adi.jog@gmail.com
Guest
Posts: n/a
 
      12-06-2005
Short answer: Yes.

The asp:listbox renders as an HTML SELECT element.
Adding the html attribute "title" to the rendered SELECT will give you
a tooltip

for VB
<listbox>.Attributes.Add("title", "Title goes here")
- and you don't even need javascript!

HOWEVER (and this is probably your problem) IE does not implement title
for the SELECT element.

If you really, really, realy need to fake it, you can use the
mouseover/ mouseout events to show/hide a seperate "tooltip" HTML
element.
Don't forget the IE windowed controls z-index bug!
http://support.microsoft.com/default...b;en-us;177378

-- addup --

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Y2Q=?=
Guest
Posts: n/a
 
      12-06-2005
Thank you for the information.
--
Christopher


"cd" wrote:

> Is it possible to add a tool tip to an asp .net listbox control utilizing
> javascript or another method? I would like to add a tooltip when the user
> hovers over the item in the listbox. I was seeking a code sample.
>
> Thank you,
> --
> Christopher

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Listbox and tooltip tshad ASP .Net 0 10-06-2008 11:54 PM
Tooltip in Listbox arnabit@gmail.com ASP .Net 0 01-19-2007 09:25 AM
How could I add a tooltip to an iframe ? Also, the tooltip contents has to be determine @ run-time ! Radu ASP .Net 1 01-08-2007 04:11 PM
tooltip on listbox item Ike Java 2 03-31-2006 03:32 AM
Tooltip for listbox and combobox Microsoft ASP .Net Web Controls 0 07-01-2005 09:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57