Elxis CMS Forum

Support => General => Topic started by: tmcgee123 on May 17, 2009, 23:00:36

Title: Front-end Tooltip
Post by: tmcgee123 on May 17, 2009, 23:00:36
I have tried using mosToolTip in the front-end but the tip doesn't display.  I've included overlib and the hidden overDiv.  What am I missing? Is there an easy way to debug this?
Title: Re: Front-end Tooltip
Post by: datahell on May 17, 2009, 23:42:55
The usage of tooltip is very simple:

First initialize tool tips:
mosCommonHTML::loadOverlib();

Then echo your tips in the place where you wish to be displayed:
echo mosToolTip('test message');

Works in both front-end and back-end.

Note: The Tool tip will generate javascript error if the text message is written in multiple lines or it is not well escaped (very often we do corrections to the language files submitted by translators due to this).
Title: Front-end Tooltip - SOLVED
Post by: tmcgee123 on May 19, 2009, 05:13:38
Thanks for your response.  I should have said that I'm using Elxis 2009 and the page not working with tooltips also uses tabpane.js vis mosTabs.  I noticed tabpane.css uses z-indexes; maybe that's the problem.

Actually, various front-end templates show the tooltips in various locations, some are off of the page.  So it's a problem with relative page elements and css.  Now fixed.