Solved

Tooltip Hover Names Using YUI TabView Control

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

776 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