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

Frames + external sites = no submenus


Poster: larsm
Dated: Wednesday February 21 2007 - 18:59:26 GMT

hi

sorry for my bad english...

i use frames sample 2 and everything works fine, only sites which are not on my server don't work. the submenus don't expand.

i use js code with absolut pathes there:

Code:
<link rel="stylesheet" type="text/css" href="http://www.muenster.de/~imoeller/frames.css">
<script type="text/javascript" src="http://www.muenster.de/~imoeller/milonic_src.js"></script>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=http://www.muenster.de/~imoeller/mmenuns4.js><\/scr"+"ipt>");
  else _d.write("<scr"+"ipt type=text/javascript src=http://www.muenster.de/~imoeller/mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="http://www.muenster.de/~imoeller/menu_data_body.js"></script>


http://www.muenster.de/~imoeller/neu/

look at my site: the news links on the left. the local link works, the two external on different servers don't. what am i doing wrong?

lars[/code]


Poster: Ruth
Dated: Wednesday February 21 2007 - 21:08:25 GMT

Hello,


The frames in your frameset don't have the call for your menus, it is the pages you load into the frames that has those calls which you put there. Now, if you load an external page, those people don't have your menus coded on their html page so you won't get the submenus.

There are three options, you can open the external pages into a new window; you can redesign your frameset so that you have a separate always available frame in which the submenus open; or you can design your site using iframes instead and a regular Milonic menu because the submenus will drop over iframes, but not frames.

Some people design their framesets so they have a top frame with the main menu, and a second frame right below it where they have the submenus open using a horizontal orientation.

If you need some examples, I can set up your page with iframes, or with a different frameset layout with horizontal submenus.

Ruth


Poster: larsm
Dated: Wednesday February 21 2007 - 21:28:42 GMT

I want to add a picture gallery which is on another server. i'm able to edit the code! look at the link i gave you, all "news ..." links on the left contains the code but the externel ones doesn't work!


Poster: Ruth
Dated: Wednesday February 21 2007 - 22:22:06 GMT

Hi,

It has to be something to do with the fact that the menu files are on one server and the page is being called from another one. I'll have to post this to Milonic because it's beyond my knowledge level.

Ruth


Poster: larsm
Dated: Tuesday March 6 2007 - 22:33:04 GMT

some news? did they do anything?


Poster: Ruth
Dated: Wednesday March 7 2007 - 3:32:14 GMT

Hi,

I posted to them again. Everything is in the middle of an upgrade and I forgot your post. Usually I check to make sure of a response. I apologize.

However, in the meantime, I've done some more testing. I used the FF js console and what is happening is that there is a permission denied. Meaning that when those offsite pages are loaded, even though the code for the files is in the page, access to them is being denied.

Code:
Error: uncaught exception: Permission denied to get property Window.getMenuByName


I think it might be that you're trying to call the files for the body page from a menu that is on the side page and they are on two different servers and I don't know if there's any way around that, unless you actually reload the whole frameset from that server whenever you use those pages and put the files on that server.

Ruth


Poster: Ruth
Dated: Wednesday March 7 2007 - 7:12:44 GMT

Hi Again,

I just got a response from Milonic. The permission denied is a security issue. It's not that the menu is not working but that the browser has stopped accessing the remote files, that is the files on the other server.

Ruth