» Forums
» DynarchMenu forum
» Bug reports
» Using context menu's in iframes within a page already using a me
Using context menu's in iframes within a page already using a me
2006/04/09 15:40
Viewed 4679 times
Replies: 2/5

we build up an application using an iframe inside the main page. the main page will contain a normal dynarch menu like an application menu. the iframe handles some diffrent contents and should use a dynarch context menu on some objects.
Currently a javascript error occurrs ("Error: menu element not found") during loading the main menu. the context menu inside the iframe will get loaded correctly.
if i change both menus to use the name "id", the main menu will be loaded inside the iframe instead of the main page???

Re: Using context menu's in iframes within a page already using
2006/04/09 16:33
Viewed 6533 times
Replies: 1/2

Concerning the "element not found" error, are you sure that an element having the ID given to DynarchMenu.setup() exists in the DOM at the time this function is called?

The best way to make sure of this is to call the function from the body.onload event.

If you can provide an URL for us to check it would be a lot easier to debug the problem...

last
Re[2]: Using context menu's in iframes within a page already usi
2006/04/14 11:00
Viewed 8059 times
Replies: 1/1

their is no problem running the iframe for itself or disabling the iframe from the main page. you can download a simple example at:

www.teqneers.de/dynarch_example.zip

inside you have a file teq_index.html and the iframe teq_iframe.html. both should be copied to a normal dynarch menu examples folder.

last
Re: Using context menu's in iframes within a page already using a me
2007/05/23 20:59
Viewed 4343 times
Replies: 1/1

I am having the same issue. I have a menu in the main frame and one in an iframe on the same page. It appears that when the main menu is loading it is accessing the javascript files in the iframe. Since the <li> elements aren't accessible from within the iframe the 'error menu element not found' alert pops up. I have tried various workarounds but so far nothing seems to work. It looks like a patch may have been provided to fix this issue, is the patch available on the website? I would appreciate any suggestions. Thanks.

last
Re[2]: Using context menu's in iframes within a page already using a me
2007/05/23 23:35
Viewed 6081 times
Replies: 0/0

I found a fix but it required modifying the hmenu.js file.

I changed the line:

_dynarch_top=window.parent;

to:

_dynarch_top=self;

last
Google