Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CoolMenu with STS Problem


TimD

Recommended Posts

I am having a little trouble with CoolMenu and STS..

 

I have got as far as adding all the files onto the site and creating the new call for the coolmenu block. The call was working fine as far as i was aware. Here is the code i placed in the sts_user_code.php file:

 

 $sts_block_name = 'coolmenubox';
require(STS_START_CAPTURE);
require(DIR_WS_BOXES . 'coolmenu.php');
require(STS_STOP_CAPTURE);
$template['coolmenubox'] = strip_unwanted_tags($sts_block['coolmenubox'], 'coolmenubox');

 

This allowed me to add the $coolmenubox variable into my sts_template.html file. This displayed an empty box and gave me the following error:

 

'MakeCM' is Undefined

 

On the following line:

 

oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

 

From what i can see the code is being created fine for the menu, here is my full index.php file which is created when it is accessed in internet explorer.

 

hopefully this wont be too big:

 

<!-- Page layout by Simple Template System (STS) v2.01 on osCommerce 2.2-MS2 - http://www.diamondsea.com/sts/ -->
<!-- Using Template File [includes/sts_template.html) -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>osCommerce</title><base href="http://www.indigoonline.co.uk/websites/Hansons/catalog/">

<!-- start get_javascript(applicationtop2header) //-->
<script>

 oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

 //Menu properties
 oCMenu.pxBetween=0
 oCMenu.fromLeft=10
 oCMenu.fromTop=100
 oCMenu.rows=0
 oCMenu.menuPlacement="left"

 oCMenu.offlineRoot=""
 oCMenu.onlineRoot=""
 oCMenu.resizeCheck=1
 oCMenu.wait=500
 oCMenu.fillImg="cm_fill.gif"
 oCMenu.zIndex=0

 //Background bar properties
 oCMenu.useBar=1
 oCMenu.barWidth="menu"
 oCMenu.barHeight="menu"
 oCMenu.barClass="clBar"
 oCMenu.barX="menu"
 oCMenu.barY="menu"
 oCMenu.barBorderX=0
 oCMenu.barBorderY=0
 oCMenu.barBorderClass=""

 oCMenu.level[0]=new cm_makeLevel()
 oCMenu.level[0].width=150
 oCMenu.level[0].height=28
 oCMenu.level[0].regClass="clLevel0"
 oCMenu.level[0].overClass="clLevel0over"
 oCMenu.level[0].borderX=1
 oCMenu.level[0].borderY=1
 oCMenu.level[0].borderClass="clLevel0border"
 oCMenu.level[0].offsetX=0
 oCMenu.level[0].offsetY=0
 oCMenu.level[0].rows=0
 oCMenu.level[0].arrow="images/arrow.gif"
 oCMenu.level[0].arrowWidth=11
 oCMenu.level[0].arrowHeight=11
 oCMenu.level[0].align="right"
 oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.8)"

	 oCMenu.level[1]=new cm_makeLevel()
	 oCMenu.level[1].width=250
	 oCMenu.level[1].height=14
	 oCMenu.level[1].regClass="clLevel1"
	 oCMenu.level[1].overClass="clLevel1over"
	 oCMenu.level[1].borderX=1
	 oCMenu.level[1].borderY=1
	 oCMenu.level[1].align="right"
	 oCMenu.level[1].offsetX=0
	 oCMenu.level[1].offsetY=0
	 oCMenu.level[1].borderClass="clLevel1border"
	 oCMenu.level[1].align="right"
	 oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
	 
	 
	 
	 oCMenu.level[2]=new cm_makeLevel()
	 oCMenu.level[2].width=250
	 oCMenu.level[2].height=14
	 oCMenu.level[2].regClass="clLevel1"
	 oCMenu.level[2].overClass="clLevel1over"
	 oCMenu.level[2].borderX=1
	 oCMenu.level[2].borderY=1
	 oCMenu.level[2].align="right"
	 oCMenu.level[2].offsetX=0
	 oCMenu.level[2].offsetY=0
	 oCMenu.level[2].borderClass="clLevel1border"
	 oCMenu.level[2].align="right"
	 oCMenu.level[2].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
	 
	 
	 
	 oCMenu.level[3]=new cm_makeLevel()
	 oCMenu.level[3].width=250
	 oCMenu.level[3].height=14
	 oCMenu.level[3].regClass="clLevel1"
	 oCMenu.level[3].overClass="clLevel1over"
	 oCMenu.level[3].borderX=1
	 oCMenu.level[3].borderY=1
	 oCMenu.level[3].align="right"
	 oCMenu.level[3].offsetX=0
	 oCMenu.level[3].offsetY=0
	 oCMenu.level[3].borderClass="clLevel1border"
	 oCMenu.level[3].align="right"
	 oCMenu.level[3].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
	 
	 
 oCMenu.makeMenu('top_1','','Aqua','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=1&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
oCMenu.makeMenu('top_2','','Aries','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=2&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
oCMenu.makeMenu('top_3','','Base Nova','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=3&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
oCMenu.makeMenu('top_4','','Class','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=4&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
oCMenu.makeMenu('top_5','','Fay','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=5&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
oCMenu.makeMenu('top_6','','Gems','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=6&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
oCMenu.makeMenu('top_7','','Leo','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=7&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
oCMenu.makeMenu('top_8','','Promo','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=8&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
oCMenu.makeMenu('top_9','','Speciale','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=9&osCsid=e08a68827a3f03d431c5bcd9db9de14a')


 // create menu
 oCMenu.construct()

   <!--  Copyright 2002 www.dhtmlcentral.com  --  modified for PHP and osCommerce by Andreas Kothe - www.oddbyte.de	-->

 </SCRIPT><!-- coolMenu_eof //-->
<!-- header //-->

<!-- end get_javascript(applicationtop2header) //-->

<link rel="stylesheet" type="text/css" href="stylesheet.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>

<body leftmargin="0" topmargin="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr> 
   <td width="150" background="images/lines.bg.gif"></td>
   <td width="160" align="right" valign="top"><img src="images/cabinet2full.jpg" width="68" height="115"></td>
   <td width="320" align="right" bgcolor="#004890"><img src="images/cabinet1.top.jpg" width="102" height="115"></td>
   <td width="130"><img src="images/logo.gif" width="130" height="115"></td>
 </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr> 
   <td width="448" bgcolor="A6B0D4"><img src="images/logo.jpg" width="448" height="108"></td>
   <td align="right" bgcolor="A6B0D4"><img src="images/cabinet1.bottom.jpg" width="102" height="108"></td>
   <td width="130" bgcolor="A6B0D4"> </td>
 </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 
   <td width="150" valign="top" background="images/lines.bg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="3">
       <tr> 
         <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<!-- start coolmenubox //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
   <td width="100%" height="14" class="infoBoxHeading">coolMenu</td>
   <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
   <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
   <td class="boxText">
<img src="images/trans.gif" width="150" height="23.85"></td>
 </tr>
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
<!-- end coolmenubox //-->
<br>
<!-- start categorybox //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="14"></td>
   <td width="100%" height="14" class="infoBoxHeading">Categories</td>
   <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
   <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
   <td class="boxText"><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=1&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Aqua</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=2&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Aries</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=3&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Base Nova</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=4&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Class</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=5&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Fay</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=6&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Gems</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=7&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Leo</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=8&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Promo</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=9&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Speciale</a><br></td>
 </tr>
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
<!-- end categorybox //-->
</font> 
         </td>
       </tr>
     </table></td>
   <td width="160" align="right" valign="bottom"><img src="images/cabinets2full.jpg" width="139" height="97"></td>
   <td width="320" valign="top" bgcolor="004890"> 
     <table width="100%" border="0" cellspacing="0" cellpadding="3">
       <tr> 
         <td><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">
<!-- start content //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

         <td class="main"><table width="320" border="0" cellspacing="0" cellpadding="0">
 <tr> 
   <td width="115" valign="top"><img src="front_image.jpg" width="115" height="146"></td>
   <td width="2" valign="top"> </td>
   <td valign="top"><div align="justify"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Lorem 
       ipsum dolor sit amet, consectetuer adipiscing elit. Integer blandit faucibus 
       magna. Nullam dictum hendrerit mauris. Donec eu nunc a nulla vestibulum 
       fringilla. Donec dui. Maecenas a nibh. Sed posuere sem et arcu. Nunc ullamcorper. 
       Nulla justo. Vivamus viverra ante quis justo. Morbi tempor aliquam leo. 
       Cum sociis natoque penatibus et magnis dis parturient montes, nascetur 
       ridiculus mus. Sed ut ante. Aliquam at ante nec augue vulputate ultricies. 
       </font> </div>
     <p align="justify"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Sed 
       luctus mauris vel odio. Etiam turpis nibh, cursus eu, mattis a, dignissim 
       et, neque. Vivamus turpis velit, sollicitudin non, nonummy nec, euismod 
       sed, ligula. Cras quam. Maecenas a eros ut dolor egestas porttitor. Aenean 
       in velit pharetra diam sollicitudin bibendum.</font>. 
     </p></td>
   <td width="2" valign="top"> </td>
 </tr>
</table>
</td>
         </tr>
         <tr>
           <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
         </tr>
         <tr>
           <td></td>
         </tr>
       </table></td>
     </tr>
   </table>
<!-- end content //-->
</font> 
         </td>
       </tr>
     </table>
   </td>
   <td width="130" align="center" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="3">
       <tr> 
         <td align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<!-- start cartbox //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
   <td width="100%" height="14" class="infoBoxHeading">Shopping Cart</td>
   <td height="14" class="infoBoxHeading" nowrap><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/shopping_cart.php?osCsid=e08a68827a3f03d431c5bcd9db9de14a"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a><img src="images/infobox/corner_right.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox1">
 <tr>
   <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents1">
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
   <td class="boxText">0 items</td>
 </tr>
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
<!-- end cartbox //-->
<br>
           
<!-- start informationbox //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
   <td width="100%" height="14" class="infoBoxHeading">Information</td>
   <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
   <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
   <td class="boxText"><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/shipping.php?osCsid=e08a68827a3f03d431c5bcd9db9de14a">Shipping & Returns</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/privacy.php?osCsid=e08a68827a3f03d431c5bcd9db9de14a">Privacy Notice</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/conditions.php?osCsid=e08a68827a3f03d431c5bcd9db9de14a">Conditions of Use</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/contact_us.php?osCsid=e08a68827a3f03d431c5bcd9db9de14a">Contact Us</a></td>
 </tr>
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
<!-- end informationbox //-->
</font></td>
       </tr>
     </table></td>
 </tr>
 <tr> 
   <td width="150"></td>
   <td width="160" align="right" valign="bottom"></td>
   <td width="310" background="images/footer.gif" bgcolor="004890"><img src="images/footer.gif" width="2" height="25"></td>
   <td width="130"></td>
 </tr>
 </table>
 </body>
</html>

 

As you can probably see the links are being created fine, it's just the outputting of these links that isn't working.

 

Any help with this will be greatly appreciated..

 

Kindest Regards

 

Tim

Link to comment
Share on other sites

<!-- start get_javascript(applicationtop2header) //-->

 

...

 

<!-- end get_javascript(applicationtop2header) //-->

 

 

 

Tim -

 

See those two lines? They bookend your coolmenu code - one at the top, one at the bottom. Get rid of those, and the error goes away. I'm not sure where those come from, but that's where the problem lies.

 

I hope this helps. I'm curious to see the final site, I'm into it so far.

 

Michael

Link to comment
Share on other sites

Hi Michael,

 

Thanks for the reply, i have managed to remove the bookends however this doesn't seem to cure my problem.

 

I'm getting the same error as before, here is an updated copy of the code generated at index.php..

 

Kindest Regards

 

Tim

 

<!-- Page layout by Simple Template System (STS) v2.01 on osCommerce 2.2-MS2 - http://www.diamondsea.com/sts/ -->
<!-- Using Template File [includes/sts_template.html) -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>osCommerce</title><base href="http://www.indigoonline.co.uk/websites/Hansons/catalog/">

<script>

 oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

 //Menu properties
 oCMenu.pxBetween=0
 oCMenu.fromLeft=10
 oCMenu.fromTop=100
 oCMenu.rows=0
 oCMenu.menuPlacement="left"

 oCMenu.offlineRoot=""
 oCMenu.onlineRoot=""
 oCMenu.resizeCheck=1
 oCMenu.wait=500
 oCMenu.fillImg="cm_fill.gif"
 oCMenu.zIndex=0

 //Background bar properties
 oCMenu.useBar=1
 oCMenu.barWidth="menu"
 oCMenu.barHeight="menu"
 oCMenu.barClass="clBar"
 oCMenu.barX="menu"
 oCMenu.barY="menu"
 oCMenu.barBorderX=0
 oCMenu.barBorderY=0
 oCMenu.barBorderClass=""

 oCMenu.level[0]=new cm_makeLevel()
 oCMenu.level[0].width=150
 oCMenu.level[0].height=28
 oCMenu.level[0].regClass="clLevel0"
 oCMenu.level[0].overClass="clLevel0over"
 oCMenu.level[0].borderX=1
 oCMenu.level[0].borderY=1
 oCMenu.level[0].borderClass="clLevel0border"
 oCMenu.level[0].offsetX=0
 oCMenu.level[0].offsetY=0
 oCMenu.level[0].rows=0
 oCMenu.level[0].arrow="images/arrow.gif"
 oCMenu.level[0].arrowWidth=11
 oCMenu.level[0].arrowHeight=11
 oCMenu.level[0].align="right"
 oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.8)"

	 oCMenu.level[1]=new cm_makeLevel()
	 oCMenu.level[1].width=250
	 oCMenu.level[1].height=14
	 oCMenu.level[1].regClass="clLevel1"
	 oCMenu.level[1].overClass="clLevel1over"
	 oCMenu.level[1].borderX=1
	 oCMenu.level[1].borderY=1
	 oCMenu.level[1].align="right"
	 oCMenu.level[1].offsetX=0
	 oCMenu.level[1].offsetY=0
	 oCMenu.level[1].borderClass="clLevel1border"
	 oCMenu.level[1].align="right"
	 oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
	 
	 
	 
	 oCMenu.level[2]=new cm_makeLevel()
	 oCMenu.level[2].width=250
	 oCMenu.level[2].height=14
	 oCMenu.level[2].regClass="clLevel1"
	 oCMenu.level[2].overClass="clLevel1over"
	 oCMenu.level[2].borderX=1
	 oCMenu.level[2].borderY=1
	 oCMenu.level[2].align="right"
	 oCMenu.level[2].offsetX=0
	 oCMenu.level[2].offsetY=0
	 oCMenu.level[2].borderClass="clLevel1border"
	 oCMenu.level[2].align="right"
	 oCMenu.level[2].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
	 
	 
	 
	 oCMenu.level[3]=new cm_makeLevel()
	 oCMenu.level[3].width=250
	 oCMenu.level[3].height=14
	 oCMenu.level[3].regClass="clLevel1"
	 oCMenu.level[3].overClass="clLevel1over"
	 oCMenu.level[3].borderX=1
	 oCMenu.level[3].borderY=1
	 oCMenu.level[3].align="right"
	 oCMenu.level[3].offsetX=0
	 oCMenu.level[3].offsetY=0
	 oCMenu.level[3].borderClass="clLevel1border"
	 oCMenu.level[3].align="right"
	 oCMenu.level[3].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
	 
	 
 oCMenu.makeMenu('top_1','','Aqua','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=1')
oCMenu.makeMenu('top_2','','Aries','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=2')
oCMenu.makeMenu('top_3','','Base Nova','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=3')
oCMenu.makeMenu('top_4','','Class','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=4')
oCMenu.makeMenu('top_5','','Fay','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=5')
oCMenu.makeMenu('top_6','','Gems','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=6')
oCMenu.makeMenu('top_7','','Leo','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=7')
oCMenu.makeMenu('top_8','','Promo','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=8')
oCMenu.makeMenu('top_9','','Speciale','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=9')


 // create menu
 oCMenu.construct()

   <!--  Copyright 2002 www.dhtmlcentral.com  --  modified for PHP and osCommerce by Andreas Kothe - www.oddbyte.de	-->

 </SCRIPT><!-- coolMenu_eof //-->
<!-- header //-->


<link rel="stylesheet" type="text/css" href="stylesheet.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>

<body leftmargin="0" topmargin="0">

<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr> 
   <td width="150" background="images/lines.bg.gif"></td>
   <td width="160" align="right" valign="top"><img src="images/cabinet2full.jpg" width="68" height="115"></td>
   <td width="320" align="right" bgcolor="#004890"><img src="images/cabinet1.top.jpg" width="102" height="115"></td>
   <td width="130"><img src="images/logo.gif" width="130" height="115"></td>
 </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr> 
   <td width="448" bgcolor="A6B0D4"><img src="images/logo.jpg" width="448" height="108"></td>

   <td align="right" bgcolor="A6B0D4"><img src="images/cabinet1.bottom.jpg" width="102" height="108"></td>
   <td width="130" bgcolor="A6B0D4"> </td>
 </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 
   <td width="150" valign="top" background="images/lines.bg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="3">
       <tr> 
         <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<!-- start coolmenubox //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>

   <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
   <td width="100%" height="14" class="infoBoxHeading">coolMenu</td>
   <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
   <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>

   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
   <td class="boxText">
<img src="images/trans.gif" width="150" height="23.85"></td>
 </tr>
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>

</table>
</td>
 </tr>
</table>
<!-- end coolmenubox //-->
<br>
<!-- start categorybox //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="14"></td>
   <td width="100%" height="14" class="infoBoxHeading">Categories</td>
   <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>

 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
   <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
   <td class="boxText"><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=1">Aqua</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=2">Aries</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=3">Base Nova</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=4">Class</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=5">Fay</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=6">Gems</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=7">Leo</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=8">Promo</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=9">Speciale</a><br></td>

 </tr>
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
<!-- end categorybox //-->
</font> 
         </td>
       </tr>

     </table></td>
   <td width="160" align="right" valign="bottom"><img src="images/cabinets2full.jpg" width="139" height="97"></td>
   <td width="320" valign="top" bgcolor="004890"> 
     <table width="100%" border="0" cellspacing="0" cellpadding="3">
       <tr> 
         <td><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">
<!-- start content //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

         <td class="main"><table width="320" border="0" cellspacing="0" cellpadding="0">
 <tr> 
   <td width="115" valign="top"><img src="front_image.jpg" width="115" height="146"></td>
   <td width="2" valign="top"> </td>
   <td valign="top"><div align="justify"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Lorem 
       ipsum dolor sit amet, consectetuer adipiscing elit. Integer blandit faucibus 
       magna. Nullam dictum hendrerit mauris. Donec eu nunc a nulla vestibulum 
       fringilla. Donec dui. Maecenas a nibh. Sed posuere sem et arcu. Nunc ullamcorper. 
       Nulla justo. Vivamus viverra ante quis justo. Morbi tempor aliquam leo. 
       Cum sociis natoque penatibus et magnis dis parturient montes, nascetur 
       ridiculus mus. Sed ut ante. Aliquam at ante nec augue vulputate ultricies. 
       </font> </div>
     <p align="justify"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Sed 
       luctus mauris vel odio. Etiam turpis nibh, cursus eu, mattis a, dignissim 
       et, neque. Vivamus turpis velit, sollicitudin non, nonummy nec, euismod 
       sed, ligula. Cras quam. Maecenas a eros ut dolor egestas porttitor. Aenean 
       in velit pharetra diam sollicitudin bibendum.</font>. 
     </p></td>
   <td width="2" valign="top"> </td>

 </tr>
</table>
</td>
         </tr>
         <tr>
           <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
         </tr>
         <tr>
           <td></td>
         </tr>

       </table></td>
     </tr>
   </table>
<!-- end content //-->
</font> 
         </td>
       </tr>
     </table>
   </td>
   <td width="130" align="center" valign="top"> <img src="images/right.gif" width="130" border="0" usemap="#Map"> 
     <table width="100%" border="0" cellspacing="0" cellpadding="0">

       <tr> 
         <td align="center"><form name="quick_find" action="http://www.indigoonline.co.uk/websites/Hansons/catalog/advanced_search_result.php" method="get">
 <input type="text" name="keywords" size="15" maxlength="30" class="textboxes" >
             <br>
               
             <input type="image" title=" Quick Find " src="images/search.gif" alt="Quick Find" width="42" height="16" border="0">
             <br>
             <font color="8398C8" size="1" face="Verdana, Arial, Helvetica, sans-serif">Use 
             keywords to find the product you are looking for.</font><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><br>
             <a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/advanced_search.php"><b>Advanced 
             Search</b></a></font>

</form></td>
       </tr>
       <tr>
         <td align="center"><img src="images/rightbottom.gif" width="130" height="1"></td>
       </tr>
     </table></td>
 </tr>
 <tr> 
   <td width="150"></td>
   <td width="160" align="right" valign="bottom"></td>

   <td width="310" background="images/footer.gif" bgcolor="004890"><img src="images/footer.gif" width="2" height="25"></td>
   <td width="130"></td>
 </tr>
 </table>
 
<map name="Map">
 <area shape="rect" coords="2,17,72,32" href="account.php">
 <area shape="rect" coords="3,36,82,49" href="shopping_cart.php">
 <area shape="rect" coords="2,54,58,66" href="checkout_shipping.php">
</map>

</body>
</html>

Link to comment
Share on other sites

I'm getting the same error as before, here is an updated copy of the code generated at index.php..

 

 

Tim -

 

You've made many more updates than simply removing the "bookends," which makes troubleshooting difficult. If you could go back to the previous version & update it so only the bookends are removed, that will fix the error. Then you can make additional updates & find where the error is reintroduced.

 

I know very little about javascript, so I can't troubleshoot this in-depth. I only know that if you take the first HTML page you posted and remove the bookends, the error goes away.

 

Michael

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...