Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tooltip with Close button

 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A tooltip is shown when a user hovers the mouse cursor over the element and disappears when the mouse cursor out that element.
But I have got a requirement where the tooltip keeps open until the user closes it. Is there a way to implement this in RichFaces?

Thank you,
Himalay
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not a "tooltip". It's more like a dialog which is opened by hovering a cursor.

By and large, we don't want tooltips that hang around indefinitely, since they clutter up the screen and may block input. However, you should be able to get the effect you want by using a however JavaScript event to make a <div> containing the "tip" visible and put a clickable area within that for a close box (I'd appreciate "ESC" key closing as well, myself).

The closest thing actually built into RichFaces that I can recall is their Dialog capability, but that will block input to the underlying page and fuzz out the background as well (except in IE).

However, there may be something more suitable and I just haven't noticed it.
 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Our business doesnt seem to like the modal/dialog as compared to tooltip. But thanks for the idea.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic