Solved

Tooltip Hover Names Using YUI TabView Control

Posted on 2011-09-07
2
339 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now