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:47

Frames based version error


Poster: benright
Dated: Monday December 4 2006 - 15:27:28 GMT

Hi everyone,
I'm having an issue with the Frames based version menu. When I select an item from my nav menu it takes me to that appropriate link's page in the body with no problem, everyting looks like its all working. But when I go to use the menu from there to select another main item link in my navigation menu, it does not work. The only way I can get out of this is if I return back to my home page, but it then keeps happening again. When I try to test the navigation page locally, it gives me an "mm_tf is null or not an object error". Does anyone know why this could be happening and how I can fix it? Any help is greatly appreciated...

Thanks,

benright


Poster: Ruth
Dated: Monday December 4 2006 - 19:02:23 GMT

Hi Ben,

Do you have the submenus coded on the pages you are loading into the frame? If there is no submenu coded on the page along with the 3 program files then the 'main' menu in the other frame can't find any submenus to open. I'm not saying this is your issue, but for many frames can be confusing because we tend to think about them as 'one' page, but in reality they are like an apartment building, each page is a different aparment, so if you want your telephone to ring in a different apartment you have to put an extension there :)

If that's not the issue, we'd need a link to test your page.

Ruth


Poster: benright
Dated: Monday December 4 2006 - 20:12:47 GMT

Ruth,

Thanks so much, sure enough that was my problem. So I'll have to go through every apartment and give them an extension !

One last question, for pages that I have in other folders and not my root web folder (where I would put a "../" infront of milonic_src.js, mmenuns4.js, etc.) I noticed when I visit that page then use the menu from there, the sub items have a broken image for the right white arrow image, I see the default white box with a red x in it. Do you know how I would handle that?

Thanks again for your prompt response,

benright


Poster: John
Dated: Monday December 4 2006 - 22:52:12 GMT

Change the image link in your style definition to be server-relative; e.g., /images/arrow.gif (or whatever your correct path sould be). Coding with ../ is asking for trouble, especially in a situation where pages are in different directories.


Poster: benright
Dated: Tuesday December 5 2006 - 15:34:26 GMT

John,

Thanks I made those images server relative and now it works fine. What about links that open a .pdf file in the body frame? I'm noticing when this happens I'm unable to use the menu after its open. Is there a way of getting around this? Or would I have to just have the pdf open in a new browser? (so that the menu would not be affected)


Thanks,
Brian


Poster: John
Dated: Tuesday December 5 2006 - 16:22:32 GMT

I'd have them open in a new browser window. Cleaner, and keeps your visitor in place on your site.


Poster: benright
Dated: Tuesday December 5 2006 - 18:48:18 GMT

Ok thanks... I have numerous pages with many links to .pdf's. Its too bad there wasnt a way other than having to open a new browser every time, oh well.

Thanks again,

Brian


Poster: Ruth
Dated: Tuesday December 5 2006 - 21:55:50 GMT

Hi,

You're back to the no submenus coded on the page i.e. pdf in the frame. I have no idea how you can do this but what you'd need to do is get the menu into the pdf document.

Ruth