| View previous topic :: View next topic |
| Author |
Message |
rserge
Joined: 12 Aug 2006 Posts: 56
|
Posted: Fri Oct 13, 2006 11:57 am Navbar w/ Javascript not showing up. |
|
|
|
I used the insert SSi in Dreamweaver's menu.
The navbar contains drop downs.
The heading does not contain the javascript for the buttons. DO i need to insert that?
Did I do this correctly?
This is the file to include. (Its in my root folder.)
http://www.wiltoncordrey.com/navbar.htm
Here is where I tried to insert the ssi code.
http://www.wiltoncordrey.com/testnav.htm
When I view source it wants to refer to it as a frame. (?) |
|
rserge
Joined: 12 Aug 2006 Posts: 56
|
Posted: Fri Oct 13, 2006 12:02 pm SSI can not be used in HTM files? |
|
|
|
| They need to be asp? |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8268 Location: Castle Rock CO USA
|
Posted: Fri Oct 13, 2006 12:42 pm |
|
|
|
How are you including the file? Only the main page needs to be ASP, SHTML, SHTM, PHTML, PHTM, or PHP or parsed as such. The other files - it is actually better if they are HTML files so they are not parsed
_________________
Corey
Toll Fax Numbers | Merchant Accounts |
|
rserge
Joined: 12 Aug 2006 Posts: 56
|
Posted: Fri Oct 13, 2006 12:55 pm Here is my error |
|
|
|
Error Mesage
Active Server Pages error 'ASP 0138'
Nested Script Block
/SSI/navbar.htm, line 11
A script block cannot be placed inside another script block.
Is there something I need to do, or my host?
(I have Javascript in this file, does SSI have any problems with javascript?)
http://www.wiltoncordrey.com/testnav.asp
The page is an asp file. The ssi file is .htm, (Shud b html?) |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8268 Location: Castle Rock CO USA
|
Posted: Fri Oct 13, 2006 3:04 pm |
|
|
|
You have a page that you are including everything, right? What is the source code of that file and what is the name of that file? It needs to be parsed but all other files do not.
_________________
Corey
Toll Fax Numbers | Merchant Accounts |
|
rserge
Joined: 12 Aug 2006 Posts: 56
|
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8268 Location: Castle Rock CO USA
|
Posted: Sat Oct 14, 2006 4:34 am |
|
|
|
OK so that source code is
| Code: |
<ul>
<li><a href="../index.htm"><img src="b_home.gif" width="94" height="15" border="0" /></a></li>
<li><a href="../wood/casegoods.htm"><img src="b_wood.gif" width="141" height="15" border="0" /></a>
<ul>
<li><a href="../wood/brittany.htm">Brittany</a></li>
<li><a href="../wood/ceylon.htm">Ceylon</a></li>
<li></li>
</ul>
<a href="../wood/empire.htm">Empire</a> <ul>
<li><a href="../wood/pacifica.htm">Pacifica</a></li>
<li><a href="../wood/palazzo.htm">Palazzo</a></li>
<li><a href="../wood/portofino.htm">Portofino</a></li>
<li><a href="../wood/venezia.htm">Venezia</a></li>
</ul>
</li>
<li><img src="b-upholstry.gif" width="171" height="15" />
<ul>
<li></li>
</ul>
<a href="../upholstery/classic.htm">Classic Home
</a>
<ul>
<li><a href="../upholstery/montage.htm">Montage</a></li>
<li><a href="../upholstery/nuvogue.htm">nuVogue</a></li>
<li><a href="../upholstery/colorpod.htm">colorPod</a></li>
</ul>
</li>
<li><img src="b_occasional.gif" width="190" height="15" />
<ul>
<li>Occasionals and Accents</li>
<li>Entertainment Centers</li>
</ul>
</li>
<li><img src="b_composition.gif" width="145" height="15" />
<ul>
<li>Bazille</li>
<li></li>
</ul>
Cezanne
<ul>
<li>Chagall</li>
<li>LeTessier</li>
<li>Matisse</li>
<li>Pissarro</li>
<li>Seurat</li>
</ul>
</li>
</ul> |
what about the main page? What is the source code of the main page?
_________________
Corey
Merchant Account Blog | Merchant Accounts |
|
rserge
Joined: 12 Aug 2006 Posts: 56
|
Posted: Sat Oct 14, 2006 5:50 pm index.asp is the home page. |
|
|
|
This is with the navbar files in the page, not the navbar ssi.
| Code: |
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Wilton Cordrey</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.style1 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
}
-->
</style>
</head>
<body>
<script language="JavaScript1.2" type="text/javascript">mmLoadMenus();</script>
<table width="792" height="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="793"><table width="792" height="119" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="89" colspan="3"><img src="images/logo.gif" width="790" height="89" /></td>
</tr>
<tr>
<td width="25" height="30" valign="top"><img src="images/PSDs/leftline.gif" width="25" height="30" /></td>
<td width="741" valign="top"><a href="index.htm"><img src="includes/b_home.gif" width="94" height="15" border="0" /></a><a href="wood/casegoods.htm" onmouseover="MM_showMenu(window.mm_menu_0813155913_0,-2,15,null,'image1')" onmouseout="MM_startTimeout();"><img src="includes/b_wood.gif" name="image1" width="141" height="15" border="0" id="image1" /></a><a href="upholstery/upholst.htm" onmouseover="MM_showMenu(window.mm_menu_0813160951_0,0,15,null,'image2')" onmouseout="MM_startTimeout();"><img src="includes/b-upholstry.gif" name="image2" width="171" height="15" border="0" id="image2" /></a><a href="javascript:;" onmouseover="MM_showMenu(window.mm_menu_0813162356_0,0,15,null,'image3')" onmouseout="MM_startTimeout();"><img src="includes/b_occasional.gif" name="image3" width="190" height="15" border="0" id="image3" /></a><a href="javascript:;" onmouseover="MM_showMenu(window.mm_menu_0813170755_0,0,15,null,'image4')" onmouseout="MM_startTimeout();"><img src="includes/b_about.gif" name="image4" width="145" height="15" border="0" id="image4" /></a><img src="includes/bb_left.gif" width="65" height="15" /><img src="includes/b_designtips.gif" width="121" height="15" /><img src="includes/b_new.gif" width="103" height="15" /><img src="includes/b_where.gif" width="111" height="15" /><img src="includes/b_media.gif" width="129" height="15" /><a href="mailto:infoatwiltoncordrey.com"><img src="includes/b_contact.gif" width="104" height="15" border="0" /></a><img src="includes/bb_right.gif" width="108" height="15" /></td>
<td width="26"><img src="images/PSDs/rightline.gif" width="24" height="30" /></td>
</tr>
</table>
<table width="792" height="498" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="25"><img src="images/PSDs/leftlinelong.gif" width="25" height="498" /></td>
<td width="233"><table width="232" height="456" border="0" cellpadding="5">
<tr>
<td><p class="style1 style2">Your home is the grounding place
from which all decisions are made. So isn't it natural
that it should be everything you want it to be. </p>
<p class="style1 style2">Our Philosophy is that all environments
should support who you are, what you want to be. Your
living environment should be an amazing refelction of
you </p>
<p class="style1 style2">We believe this may be achieved
with style and grace, while not breaking your pocketbook.</p></td>
</tr>
</table>
<p class="style1"> </p></td>
<td width="504">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="507" height="498">
<param name="movie" value="intro.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="intro.swf" width="507" height="498" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object>
</td>
<td width="25"><img src="images/PSDs/rightlinelong.gif" width="24" height="498" /></td>
</tr>
</table>
<div align="center"></div>
<table width="792" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/PSDs/bottom.gif" width="790" height="21" /></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
|
[/code] |
|
rserge
Joined: 12 Aug 2006 Posts: 56
|
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8268 Location: Castle Rock CO USA
|
Posted: Sun Oct 15, 2006 4:42 am |
|
|
|
Are you using JavaScript to include? I saw
| Code: |
| <script language="JavaScript1.2" type="text/javascript">mmLoadMenus();</script> |
but I did not see any type of include statement
_________________
Corey
Toll Fax Numbers | Merchant Accounts | Microsoft Expressions |
|
rserge
Joined: 12 Aug 2006 Posts: 56
|
Posted: Sun Oct 15, 2006 12:40 pm Sorry... |
|
|
|
| In my last post I mentioned that I was using the navabr files themselves, actually putting them in the page. I dint use the ssi technique...I am not sure how. Sorry for the confusion there. I assume the javascript is for the dropdowns created in dw. |
|
rserge
Joined: 12 Aug 2006 Posts: 56
|
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8268 Location: Castle Rock CO USA
|
|
|