Frames + external sites = no submenus

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
larsm
Beginner
Beginner
Posts: 3
Joined: Wed Feb 21, 2007 7:46 pm

Frames + external sites = no submenus

Post by larsm »

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: Select all

<link rel="stylesheet" type="text/css" href="http://websites.milonic.com/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]
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
larsm
Beginner
Beginner
Posts: 3
Joined: Wed Feb 21, 2007 7:46 pm

Post by larsm »

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!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
larsm
Beginner
Beginner
Posts: 3
Joined: Wed Feb 21, 2007 7:46 pm

Post by larsm »

some news? did they do anything?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply