Solved

Tooltip Hover Names Using YUI TabView Control

Posted on 2011-09-07
2
351 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

751 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