Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Using optiontransferselect tag & tooltips

Posted on 2011-10-03
Medium Priority
Last Modified: 2012-05-12
We are using this struts tag to display a list of values for selection - we also need to have some tool tip support whereby elements in the select boxes provide a tool tip on mouse over - any ideas how to do this ?

Question by:abuyusuf35

Author Comment

ID: 36911838
Any ideas ?
LVL 19

Accepted Solution

Jim Cakalic earned 2000 total points
ID: 37139434
Since the control doesn't provide this behavior you'll have to write some JavaScript that runs on page load, queries each Select for its Options and sets the title attribute of the Option. Depending on which browsers/versions you are targeting (doesn't work in IE6) this should add a simple browser default tooltip to each Option. If you want something fancier you could implement an onmouseover function or use something like jQuery Tooltip (http://flowplayer.org/tools/tooltip/index.html).

Not sure whether this will work as the user moves Options between Selects. If Option objects are preserved (removed from one Select and added to the other) then I don't see why it wouldn't work. If not (a new Option object is created and the old one abandoned when moving between Selects) then I'd have to give it a little more thought as to how to dynamically set the title or attach onmouseover to the new Option object.


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Ready to get certified? Check out some courses that help you prepare for third-party exams.
Don’ts and Dos are two important end products of software testing basics that a tester needs to regard. This article attempts to explain the principles of both.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

571 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