View Single Post
Old 07-12-2011, 04:52 PM   #1
wortmann
 
Join Date: Jul 2011
Posts: 10
Unhappy vertical menu bar with SSI

I'm new to all of this. But i've started to design a menu bar (vertical). I've decided to make one (template) vertical menu using spry assets so i can use them in all my pages and even in multiple websites.

However i cant get the hang off the SSI.
I've created a HTML index page (just for practice). Here is the code:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Spry menu</title>
<!--#include virtual="/includes/menu.html" -->
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
</head>

Then i've created a menu.html page and this one is located in the root/include folder and it contains the following:


<head>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />

</head>
<body>
<ul id="MenuBar1" class="MenuBarVertical">
<li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
<ul>
<li><a href="#">Item 1.1</a></li>
<li><a href="#">Item 1.2</a></li>
<li><a href="#">Item 1.3</a></li>
</ul>
</li>
<li><a href="#">Item 2</a></li>
<li><a class="MenuBarItemSubmenu" href="#">Item 3</a>
<ul>
<li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
<ul>
<li><a href="#">Item 3.1.1</a></li>
<li><a href="#">Item 3.1.2</a></li>
</ul>
</li>
<li><a href="#">Item 3.2</a></li>
<li><a href="#">Item 3.3</a></li>
</ul>
</li>
<li><a href="#">Item 4</a></li>
</ul>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>


I can see the menu in the design window of dreamweaver but when i go to live view it's not there. or if i want to see the result in IE it redirects to the include/menu.html and it comes up with internet explorer can't open the page.

is there anyone out there that could help?
wortmann is offline   Reply With Quote