/ undefined error with Version 1.3 Tooltip and V 5.7 Menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jimsohn
Super Advanced
Super Advanced
Posts: 46
Joined: Sun May 19, 2002 8:23 pm
Location: Alexandria, Va

/ undefined error with Version 1.3 Tooltip and V 5.7 Menu

Post by jimsohn »

I installed V 5.7 Menu and the associated Version 1.3 tooltip script. If one places the cursor over a tooltip message you will see that the URL ends in /undefined. Of course if you click on the tooltip you get a page not found error.
I didnt notice this to be the case with the older tooltip/menu sw.

Basically the tooltip is a hot link.

You can see what I am talking about from the URL:
http://www.gbgm-umc.org/wesley-va/

I have tooltips assigned to 'home' 'pastor tony' 'tidbits' & '50th anniversary'
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

It's working on our main site, so I don't think there's a menu problem. The only thing I see is a small syntax error. You have...

Code: Select all

aI("text=Home;url=index.html;status= To The Home Page;onfunction=showtip('Back to Home Page')");
Should be...

Code: Select all

aI("text=Home;url=index.html;status= To The Home Page;onfunction=showtip('Back to Home Page');");
Note the additional ; towards the end of the aI (after ...Page') ). The end of every aI is always ;"); Many of yours are not.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

John,
If you go to sample 6 and hold the mouse over Home, then move to click the tooltip you get a 'link' action, but it goes to the page not found error page. It's almost as if the tooltip is function like it expects a link to be there. I did mess around and in the tooltips changed the type=tooltips to type=header which stops the link action, but I don't think you're supposed to do that.

Ruth
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi All,

It does seem that there's a little problem with the tooltips thinking that they're links, but linking to "undefined". I'm sure that'd be an easy fix for Andy, for type=ToolTip. Meantime, here's a temporary fix that will make a tooltip item act like any other menu item that has no url defined.

In tooltips.js, change line 33 from

Code: Select all

aI("text=;type=ToolTip;");
to

Code: Select all

aI("text=;type=ToolTip;url=javascript:void(0);");
Cheers,

Kevin
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Fixed for version 5.71 now up.

Once I get a minute, I'll update the release log, It is Sunday after all :)

Cheers
Andy
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

kevin3442 wrote:...Meantime, here's a temporary fix that will make a tooltip item act like any other menu item that has no url defined...
Ummm.... nevermind. ;)
jimsohn
Super Advanced
Super Advanced
Posts: 46
Joined: Sun May 19, 2002 8:23 pm
Location: Alexandria, Va

Thanks, It's Fixed

Post by jimsohn »

Andy, thanks & thanks to others who commented on this topic. I downloaded V 5.71 and installed it just now. All is well. The tooltip does NOT exhibit a link characteristic now.

Your fast as usual, Andy.

Jim, http://www.gbgm-umc.org/wesley-va/
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Ruth wrote:If you go to sample 6 and hold the mouse over Home, then move to click the tooltip you get a 'link' action, but it goes to the page not found error page.
Guess I need a steadier hand or something. Couldn't see the failure.
John
Post Reply