Re[6]: Menu evaluation
2005/06/12 17:42
Viewed 16328 times
Replies: 1/5

Sorry for the late reply.

Try to put the menu on some Web server, so to access it as http://something/hmenu-2.5/ instead of c:\hmenu-2.5\. Put the full directory as unzipped from the archive, not only the src dir. And then try to access http://something/hmenu-2.5/index.html from your server and the documentation index should show up.

Re[7]: Menu evaluation
2005/06/13 16:00
Viewed 17799 times
Replies: 1/4

Thanks for the reply.

Index.html works fine from both local path and when copied on a webserver.

Based on the documentation i tried to create a testpage.htm on the web server to test the menu. i get the error type mismatch at line 14.

the url www.mysite/hmenu/index.html works fine
but www.mysite/hmenu/testpage.htm doesnt work.

copied all the files to hemu directory on the web server.

Let me know if i am doing anything wrong.

The test page(testpage.htm) code is as follows:

  • ------------------------------------------------------------------------------------------------------

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- load the menu stylesheet -->
<style type="text/css">
@import url("src/skin-xp.css");
</style>
<!-- declare the menu location -->
<script type="text/javascript">
_dynarch_menu_url = "/src/";
</script>
<!-- load the menu program file -->
<script type="text/javascript" src="src/hmenu.js"></script>
<!-- [ ... ] your HEAD declarations here -->
</head>
<body onload="DynarchMenu.setup('menu')">
<table>
<tr>
<td>
<select name="ts"></select>
</td>
</tr>
<table>
<ul id="menu" style="display: none">
<li title="Contains file operation options">
_File
<ul>
<li>
<a href="javascript:doOpen();" title="Open a new file">
_Open
</a>
</li>
<li>
<a href="javascript:doSave();" title="Save the current file">
_Save
</a>
</li>
<li>
<a href="javascript:doSaveAs();" title="Save as a new file">
Save _as...
</a>
</li>
</ul>
</li>
<li title="Links to other sites">
_Links
<ul>
<li>
<img src="icons/mozilla.gif" alt="" />
<a href="http://www.mozilla.org"
title="Mozilla browser (opens new window)"
target="_blank">
_Mozilla
</a>
</li>
<li>
<img src="icons/opera.gif" alt="" />
<a href="http://www.opera.com" title="Opera browser">_Opera</a>
</li>
</ul>
</li>
</ul>
<script type="text/javascript">
//<![CDATA[
document.writeln("<style type='text/css'>#menu { display: none; }</style>");
//]]>
var mnu =document.getElementById("menu")
alert(mnu.innerHTML)
mnu.style.display="none"
</script>
</body>
</html>

  • ------------------------------------------------------------------------------------------------------
last
Re[8]: Menu evaluation
2005/06/13 16:07
Viewed 19919 times
Replies: 1/3

First off, the _dynarch_menu_url variable is probably not set correctly (you said everything's in "/hmenu/", but in your source the variable is defined as "/src/").

On the other hand, I don't have the slightest idea about what could go wrong, and I can't help you out unless you put everything on some public server so that I can check.

last
Google