Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:04

Firefox opening window when using Tooltip


Poster: cbetta
Dated: Monday June 5 2006 - 19:37:21 BST

Hello, I'm trying to use the Tooltips feature of the menus (I'm running the latest 5.747 version). However, while I seem to be able to get it to work in IE, Firefox is opening a popup window that results in a 404 looking for a file called m_tooltips, which obviously doesn't exist (IE was doing the same until I added a url attribute to the tooltip style definition as outlined below). Further, there is no JS error in the console, so I'm pretty stumped as to the cause. Here's my code snippet from the menu definitions:

with(milonic=new menuname("ValuationSinglePropOptions")){
style=subMenuStyle;
aI("text=New Construction (ADC);url=/valuation/property/index.cfm?nc=yes;showmenu=ValuationNCOptions;status=Run a New Construction (ADC) Valuation Analysis;tooltip=Run an Acquisition, Development, or Construction analysis for a planned building;target=_top;");
aI("text=Stabilized;url=/valuation/property/index.cfm;showmenu=ValuationSectorOptions;status=Run a Single Property Valuation Analysis;tooltip=Run an analysis for a building that has already opened for business");
}

Note that to get the tooltips to work with IE, I added this small definition to the tooltips.js file in the M_toolTipStyle definition:

url="javascript:void(0);";

Here is the popup window message that gets displayed:

java.io.FileNotFoundException: /m_tooltips

I don't know why it's even looking for a file called m_tooltips

Any ideas?

This is Firefox 1.5.0.4 using the latest 5.747 DHTML Menu version.

Regards,
Dave.


Poster: Migru
Dated: Monday June 5 2006 - 21:44:57 BST

Hi

canĀ“t you provide a url? m_tooltips is not a file, it is a menu in tthe tooltips.js file. Do you have that tooltips.js module referenced in a correct way?
Please see

http://www.milonic.com/menumodules.php
(it is the 7th module on that page)

Michael


Poster: cbetta
Dated: Monday June 5 2006 - 21:52:00 BST

Hello. No, I can't provide a URL, as this is on an internal development server and I don't have the means to drop sample code on a publicly-accessible server. Sorry. Is there a specific code snippet other than what I have provided that you could use to help diagnose the problem? I'm happy to provide it if I can.

As I stated in my initial post, I'm aware that m_tooltips isn't a real file, which is why I'm confused as to what the menu code is doing/looking for. Further, I also noted that I was able to get the tooltips working in IE, so that indicates to me that my file includes and positioning is as it should be. This is a Firefox-specific issue. Here are the tooltips.js style and menu definitions, if that helps:

with(M_toolTipStyle=new mm_style()){
offbgcolor = "#FFFFE1";
offcolor = "#000000";
bordercolor = "#999999";
borderstyle = "solid";
padding = 1;
borderwidth = 1;
fontsize = "10px";
fontstyle = "normal";
fontfamily = "tahoma, verdana";
url="javascript:void(0);";
overfilter = "Fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=5)";
}
with(new menuname("M_toolTips"))
{
top="offset=22"
left="offset=10"
style=M_toolTipStyle;
margin=4
if(_W.M_maxTipWidth)maxwidth=M_maxTipWidth
aI("text=;type=ToolTip;");
}

Thanks for your help.

Regards,
Dave.


Poster: Migru
Dated: Monday June 5 2006 - 21:59:40 BST

Syntax checks ?
Semicolon missing ?


Poster: cbetta
Dated: Monday June 5 2006 - 22:07:54 BST

See, that's what I thought too. If you look at my code vs. the provided tooltips.js file on the site, I actually cleaned up the definitions to have semi-colons at the end of each line (I tested with the original too and had the same problem, so it's nothing I did cleanup-wise). This didn't do anything to change my situation.

At this point, I'm convinced it's a Firefox-specific issue, although I'm happy to be shown otherwise! ;) I feel like it has something to do with the fact that my definition calls for the menu item to be linked but that it also has a sub-menu attached to it. (I have a url=, showmenu=, and a tooltip= in the declaration I posted earlier.) None of the examples on the Milonic.com site provide this sort of functionality. So my menu tree is something like:

Parent Menu Item
-->Sub-Menu Item (this is where I want the tooltip to be)
---->Sub-Sub-Menu Item

Thanks again.

Regards,
Dave.


Poster: cbetta
Dated: Monday June 5 2006 - 22:47:16 BST

Shoot. Now I'm seeing the same exact problem with IE. It definitely was working, but I opened a new instance and it crapped out when I rolled over the menu item (with the same exact 404 error message).


Poster: vikenk
Dated: Tuesday June 6 2006 - 15:42:36 BST

Hi,

Can you provide a screen-shot? Does the 404 not found message appear inside the tooltip window or does it appear on the whole page?

For starters, I would:

1) Just as a test, get rid of url="javascript:void(0);";

2) Download the tooltips module again.

3) Make sure the tooltips script is called for after all the other menu scripts, and not before the menu scripts.

That's all I can think of at this moment.


Poster: cbetta
Dated: Tuesday June 6 2006 - 15:58:37 BST

Re-downloaded everything, cleared my cache, and still the same problem.

Here's a link to the screenshot:

http://www.cbetta.com/misc/tooltips.gif

You'll see the menu in the background. It happens if I roll over the sub-menu option to pop up the tooltip.

Again, here's my menu_data file's definition for the tooltip:

with(milonic=new menuname("ValuationSinglePropOptions")){
style=subMenuStyle;
aI("text=New Construction (ADC);url=/valuation/property/index.cfm?nc=yes;showmenu=ValuationNCOptions;status=Run a New Construction (ADC) Valuation Analysis;tooltip=Run an Acquisition, Development, and Construction analysis for a planned building;target=_top;");
aI("text=Stabilized;url=/valuation/property/index.cfm;showmenu=ValuationSectorOptions;status=Run a Single Property Valuation Analysis;tooltip=Run an analysis for a building that has already opened for business");
}

One thing that's still jumping out at me vs. the examples on the Milonic site is that I am using the tooltip over a menu item that is, in turn, calling a sub-menu. All the examples on the Milonic site assume that the menu item for which the tooltip is supposed to appear is the end node? Is that significant at all?

Regards,
Dave.


Poster: vikenk
Dated: Tuesday June 6 2006 - 16:18:29 BST

cbetta wrote:
One thing that's still jumping out at me vs. the examples on the Milonic site is that I am using the tooltip over a menu item that is, in turn, calling a sub-menu. All the examples on the Milonic site assume that the menu item for which the tooltip is supposed to appear is the end node? Is that significant at all?


I suppose anything is possible, but that should not be significant. I just implemented the same style system as yours:

Parent Menu Item
--> Sub Menu Item (has tooltip, calls another submenu)
----->Sub Sub Menu

I have no problems using it that way. Not to get off-track, but what is the purpose of url="javascript:void(0);";? I'm becoming highly suspicious of that.

Obviously, you're calling a URL to pop-up on top of your existing webpage. <Thinking out loud> Since the Tooltip is behaving the same way, could there be a conflict? Try changing "target=_top" to "target=_blank" and see what happens.

FWIW, I have not been able to reproduce the error.


Poster: cbetta
Dated: Tuesday June 6 2006 - 16:29:38 BST

Hi Viken,

Thanks for sticking with me on this. I don't have that javascript:void(0) declaration in there anymore. I had taken your suggestion and re-downloaded the tooltips.js file from the milonic.com site and copied over my version. I then cleared out my cache to make sure I was getting the fresh copy. To answer your question though, I had put that in on the off-change that the tooltip code thought it was supposed to open a link. Obviously, the void would have prevented it. However, that didn't seem to make a difference in the end.

Further, I am not calling a popup window with the menu at all. I am trying to roll-over that sub-menu option to provide more information as to the description of the menu options. The target=_top was an old directive from a time when one of our sub-apps was in a frameset. That's no longer needed though. I removed the target= reference and still have the same issue. I also tried, just as a test the target=_blank suggestion. That didn't do anything to change the window from popping up.

I guess my whole point is that there's absolutely no reason for the window to be popping up at all. I just want to roll over that sub-menu option and see the tooltip text appear...no pop-ups.

I'm stumped.

Regards,
Dave.


Poster: vikenk
Dated: Tuesday June 6 2006 - 16:34:13 BST

I agree. There should be no reason for a window to pop up. In my test no windows popped up at all. Just the tooltip box.

This is a weird one...