Re[7]: Menu evaluation
2005/06/13 16:00
Viewed 17806 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>

  • ------------------------------------------------------------------------------------------------------
Re[8]: Menu evaluation
2005/06/13 16:07
Viewed 19928 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
Re[9]: Menu evaluation
2005/06/13 17:01
Viewed 22026 times
Replies: 1/2

created a hmenu directory on the web server and copied all the files from zip to this directory. So src files are within this folder.

The testhmenu.htm is also present in hmenu directory.

As you have requested I copied the files to my test system. pls check it. let me know if you need any info

Try this both urls.
http://test.gofileroom.com/hmenu/index.html - works ok
http://test.gofileroom.com/hmenu/testhmenu.htm - error

or give ur email id I can send all files so that u can review on your server.

last
Google