menu setup
2004/11/18 05:33
Viewed 6332 times
Replies: 2/5
by vrnb

hi.

i have a problem with IE if i want to do call DynarchMenu.setup() after building the menu list <ul>...</ul> and not to onload event of the body.

in firefox this works just fine, but in IE i get the error "internet explorer could not open internet site http://.... operation aborted"

does anyone know how to workaround this?

thank you.

last
Re: menu setup
2004/11/18 09:09
Viewed 8488 times
Replies: 1/2

I remember seing the same problem in IE some time ago, though I don't exactly know what was the cause. However, your way is not the recommended way to setup the menu because DynarchMenu.setup needs to modify the document in order to generate menus. Trying to do this before the document has finished loading can generate a bunch of errors, depending on browser and connection speed.

For instance, the hmenu.js file may not have finished loading, which will generate an error like “Undefined is null or not an object™

last
Re: menu setup
2006/07/02 23:15
Viewed 5253 times
Replies: 1/1

I just ran into this problem as well. Fortunately, I had run into this when working on some Google maps stuff, and found an excellent solution that's very easy to implement.

The solution is described here:
http://www.ryangrant.net/archives/internet-explorer-cannot-open-the-internet-site-operation-aborted-google-map-api#comment-137

// solution -- move the "loading" code to a callback function and trigger it by timer
setTimeout("{$main_menu_id}_setupMenu()", 1);

function {$main_menu_id}_setupMenu()
{
document.getElementById('myMenuId').style.display = 'none';
DynarchMenu.setup('myMenuId', { electric: true, timeout: 70 } );
}

Enjoy!

Alan

last
» Re[2]: menu setup, by showcasere [ quick view ]
Context menu and main menu
2004/11/21 10:15
Viewed 5836 times
Replies: 1/9

I'm trying to use the eval version to set up a page that has both a navigation menu across the top as well as a special context menu in a specific

area. The demos and examples that I found show doing one or the other but not how to get it to do both on the same page. I tried a few different things but so far haven't been able to get both a context menu and a main menu on the same page. Any tips? Thanks. This has been working extremely well so far btw, I'm looking forward to getting the rest of what I need it to do working. Keep up the good work!

last
Re: Context menu and main menu
2004/11/22 09:37
Viewed 8264 times
Replies: 1/8

Well, this works without any problems. For instance, the index.html page in the package sets up both: you have the main menu bar, and a context menu that opens when the document is right clicked.

last
Google