Solved

Tooltip Hover Names Using YUI TabView Control

Posted on 2011-09-07
2
347 Views
Last Modified: 2012-05-12
Hello,

I'm using the YUI2 TabView Control built from script below.
http://developer.yahoo.com/yui/examples/tabview/fromscript.html

Instead of having the "active" tool tip appear on the active tab, I would like to have tool tips display on hover on every tab and instead of having the word "active" I would like for the hover to display the name of the tab title.

Using the suggestions from the YUI forum, I made adjustments but it still isn't working exactly as needed. (I could have taken a wrong turn somewhere.)

Normally when you hover you get the "active" hover on the active tab. To remove the "active" hover I used - "YAHOO.widget.Tab.prototype.ACTIVE_TITLE = ".

To add hovers using the tab title names I used the attached code which grabs the tap label "or tab name" and uses it as the hover for that tab. This worked as far as adding tooltips names over the non-active tabs but by using the code to remove the "active" hover there is no hover on the active tab.

So to test I removed the code that removes the "active" hover and this made the "active" hover appear again but it does not use the tab title name as the hover just the word "active".

Is there a way to have individual tool tip hovers for every menu tab which will use the tab title name as the actual hover with this control?  
title: tabs[i].label

Open in new window

0
Comment
Question by:DSTIS1
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36502403
0
 

Author Closing Comment

by:DSTIS1
ID: 36503176
Thank you!

The attachment "tabview-active-flag.patch" on the first URL had the information I needed.

That code along with "title" code I originally attached to the question corrected the issue.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question