?
Solved

strange <!--[endif]--> has appeared on my page but only in IE

Posted on 2009-02-13
4
Medium Priority
?
361 Views
Last Modified: 2012-05-06
If you look at this page:

http://www.robinbenzle.com/aboutrobin.asp

in both IE and Firefox you will notice that in IE the page cuts off early and displays <!--[endif]--> any idea where this is coming from?
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/robinbenzle.asp" -->
<%
Dim rsabout
Dim rsabout_cmd
Dim rsabout_numRows
 
Set rsabout_cmd = Server.CreateObject ("ADODB.Command")
rsabout_cmd.ActiveConnection = MM_robinbenzle_STRING
rsabout_cmd.CommandText = "SELECT * FROM about" 
rsabout_cmd.Prepared = true
 
Set rsabout = rsabout_cmd.Execute
rsabout_numRows = 0
%>
<%
Dim cat, varcat
varcat = "Invalid Category"
cat = "No Category Selected"
IF request.querystring("cat") <> "" Then
cat = request.querystring("cat")
End if
If cat = "appetizersandmunchies" Then
varcat = "Appetizers and Munchies"
End if
If cat = "NeatMeatDishes" Then
varcat = "Neat Meat Dishes"
End if
If cat = "APlethoraofPoultry" Then
varcat = "A Plethora of Poultry"
End if
If cat = "GoneFishing" Then
varcat = "Gone Fishing"
End if
If cat = "PleasePassthePasta" Then
varcat = "Please Pass the Pasta"
End if
If cat = "SoupsandStews" Then
varcat = "Soups and Stews"
End if
If cat = "EatYourVeggiesandOtherSideDishes" Then
varcat = "Eat Your Veggies and Other Side Dishes"
End if
If cat = "SayitWithSalads" Then
varcat = "Say it With Salads"
End if
If cat = "BreadBasket" Then
varcat = "Bread Basket"
End if
If cat = "SauceitUp" Then
varcat = "Sauce it Up"
End if
If cat = "HowSweetItIs" Then
varcat = "How Sweet It Is"
End if
If cat = "SundayMorningBreakfast" Then
varcat = "Sunday Morning Breakfast"
End if
If cat = "LiquidRefreshments" Then
varcat = "Liquid Refreshments"
End if
If cat = "MiscellaneousfortheMouth" Then
varcat = "Miscellaneous for the Mouth"
End if
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
 
Repeat1__numRows = -1
Repeat1__index = 0
rsrecipies_numRows = rsrecipies_numRows + Repeat1__numRows
%>
<%
Dim MM_paramName 
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
 
Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth
 
Dim MM_removeList
Dim MM_item
Dim MM_nextItem
 
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
  MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If
 
MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""
 
' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
  End If
Next
 
' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
  End If
Next
 
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then 
  MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "")  Then
  MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
  MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
 
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
  If (firstItem <> "") Then
    MM_joinChar = "&"
  Else
    MM_joinChar = ""
  End If
End Function
%>
<!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">
<html>
<head>
	<title>Robin Benzle food and travel</title>
 
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
 
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
 
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
    <style type="text/css">
<!--
.garagesale {
	width: 231px;
	margin-top: 20px;
	background-image: url(images/storefront.jpg);
	background-repeat: no-repeat;
	height: 190px;
	clear: both;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	margin-left: 5px;
}
.travellinks {
	margin-right: 0px;
	margin-left: 0px;
	margin-top: 0px;
	font-size: 12px;
	font-weight: bold;
	padding-right: 0px;
	width: 240px;
}
.travelpicday {
	font-size: 14px;
	font-weight: bold;
	padding-top: 10px;
	padding-bottom: 5px;
	padding-left: 15px;
	padding-right: 15px;
	width: 210px;
}
.travelpicpadding {
	padding-top: 10px;
	padding-bottom: 10px;
	width: 220px;
}
.break {	clear: both;
}
.chowlinks {
	width: 310px;
	margin-right: 0px;
	margin-left: 20px;
	margin-top: 15px;
	font-size: 12px;
	font-weight: bold;
	margin-bottom: 10px;
}
.chowsubscribe {	color: #999999;
	float: left;
	margin-top: 21px;
	margin-left: 10px;
	font-size: 10px;
}
.chowtext {
	margin-top: 10px;
	margin-left: 25px;
	font-weight: bold;
	font-size: 20px;
	float: left;
}
.chowtime {
	width: 495px;
	padding-right: 0px;
	margin-top: 2px;
	background-repeat: repeat;
	background-image: url(images/chowtimeleavesgrad.jpg);
	margin-left: 5px;
}
.chowvideo {	width: 480px;
	margin: 0px;
	padding-top: 15px;
	text-align: center;
}
.foodbite {
	margin-left: 15px;
	margin-top: 10px;
	margin-right: 10px;
	background-image: url(images/foodbitebg.jpg);
	padding-bottom: 10px;
	margin-bottom: 10px;
	height: 220px;
	padding-top: 1px;
	background-repeat: no-repeat;
	background-position: center center;
}
.foodbitebody {
	margin-top: 20px;
	margin-left: 60px;
	font-size: 14px;
	margin-right: 40px;
}
.foodbiteheader {
	margin-left: 15px;
	padding-top: 0px;
	font-size: 14px;
	font-weight: bold;
	color: #333333;
	margin-top: 90px;
	padding-left: 70px;
	margin-bottom: 0px;
	padding-right: 140px;
}
-->
    </style>
    <link href="robincss.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
.chowback {	margin-top: 7px;
	margin-left: 5px;
	margin-right: 10px;
	font-weight: bold;
	font-size: 20px;
	float: left;
}
.chowtext1 {	margin-top: 10px;
	margin-left: 0px;
	font-weight: bold;
	font-size: 20px;
	float: left;
}
.recipebody {	background-repeat: repeat-y;
	width: 660px;
	padding-right: 15px;
	padding-left: 15px;
	background-image: url(images/recipebody.jpg);
	padding-top: 10px;
}
.recipedescriptionholder {	margin-top: 10px;
	padding-right: 20px;
}
.recipefooter {	width: 660px;
	margin-top: 0px;
	padding-right: 15px;
	padding-left: 15px;
	background-image: url(images/recipefooter.jpg);
	height: 70px;
	background-repeat: no-repeat;
}
.recipeholder {	width: 690px;
	margin-top: 5px;
	margin-right: 0px;
	margin-bottom: 15px;
	margin-left: 0px;
	padding-left: 20px;
}
.recipetitleholder {	padding-left: 105px;
}
.recipetopper {	width: 660px;
	margin-top: 0px;
	padding-right: 15px;
	padding-left: 15px;
	background-image: url(images/recipetopper.jpg);
	height: 70px;
	background-repeat: no-repeat;
}
.recipies {	width: 720px;
	margin-top: 10px;
	margin-right: 7px;
	margin-left: 15px;
	background-repeat: no-repeat;
	background-image: url(images/chowtimerecipies.jpg);
	background-color: #EDEDD5;
	margin-bottom: 15px;
}
.recipebody1 {	background-image: url(images/recipebody.jpg);
	background-repeat: repeat-y;
	width: 660px;
	padding-right: 15px;
	padding-left: 15px;
	background-color: F1EDEE;
}
.recipeholder1 {
	width: 690px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	padding-left: 20px;
}
.recipetitleholder1 {	padding-left: 90px;
	padding-right: 35px;
}
.recipetopper1 {	width: 205px;
	margin-top: 0px;
	padding-right: 15px;
	padding-left: 470px;
	background-image: url(images/recipetopper.jpg);
	height: 48px;
	background-repeat: no-repeat;
	padding-top: 27px;
}
.style17 {font-size: 9%}
.titletoppadding {	padding-top: 0px;
	padding-right: 50px;
}
.titletoppadding ul li{margin-bottom:6px;}
-->
    </style>
    <link href="style.css" rel="stylesheet" type="text/css" />
</head>
 
<body bgcolor="#ffffff" leftmargin=0 topmargin=0 marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/buttoncommentsquestions.jpg','images/buttonhome.jpg','images/buttonrecipe.jpg','images/buttonvideorecipe.jpg','images/buttonfoodarticles.jpg','images/buttontravelvideos.jpg','images/buttontravelarticles.jpg')">
 
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
  <tr>
	<td width="50%" background="images/bg.gif"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
	<td valign="bottom" background="images/bg_left.gif"><img src="images/bg_left.gif" alt="" width="17" height="16" border="0"></td>
	<td valign="top">
      <table width="950" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="bottom" align="right" background="images/header.jpg" width="950" height="254">
          
                        <div class="searchvertical">
                <form method="get" action="http://www.google.com/custom"><input type="submit" name="btnG" value="Search" />
      <input type="text" name="q" size="16" maxlength="255" value="" />
      <input type="hidden" name="sitesearch" value="http://www.robinbenzle.com/" />
    </form>
              </div>          </td>
        </tr>
        <tr>
          <td valign="top">          </td>
        </tr>
        <tr>
          <td valign="top">
          
           <div align="center">
    <div class="headerholder">
           
              
                <div class="buttonsidepadding"><a href="index.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','images/buttonhome.jpg',1)"><img src="images/buttonhomelt.jpg" name="home" width="89" height="20" border="0" /></a></div>
                <div class="buttonsidepadding"><a href="recipearchivecategory.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('recipe archive','','images/buttonrecipe.jpg',1)"><img src="images/buttonrecipelt.jpg" name="recipe archive" width="108" height="20" border="0"></a></div>
                <div class="buttonsidepadding"><a href="recipevideos.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Chow Time Videos','','images/buttonvideorecipe.jpg',1)"><img src="images/buttonvideorecipelt.jpg" name="Chow Time Videos" width="138" height="20" border="0" /></a></div>
                <div class="buttonsidepadding"><a href="recipearticles.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('food articles','','images/buttonfoodarticles.jpg',1)"><img src="images/buttonfoodarticleslt.jpg" name="food articles" width="107" height="20" border="0"></a></div>
                <div class="buttonsidepadding"><a href="travelvideos.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('travel videos','','images/buttontravelvideos.jpg',1)"><img src="images/buttontravelvideoslt.jpg" name="travel videos" width="109" height="20" border="0"></a></div>
                <div class="buttonsidepadding"><a href="travelarticles.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('travel articles','','images/buttontravelarticles.jpg',1)"><img src="images/buttontravelarticleslt.jpg" name="travel articles" width="115" height="20" border="0"></a></div>
                <div class="buttonsidepadding"><a href="forum/category-view.asp" target="_blank" onMouseOver="MM_swapImage('comments and questions','','images/buttoncommentsquestions.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="images/buttoncommentsquestionslt.jpg" name="comments and questions" width="173" height="20" border="0"></a></div>
   
              </div> 
          </div>
    <div align="center"></div>
          
          </td>
        </tr>
      </table>
      <table width="950" border="0" cellpadding="0" cellspacing="0" background="images/topbg.jpg">
 
<tr>
  <td width="950" height="8" align="center" bgcolor="#FFFFFF">   </td>
  </tr>
<tr>
	<td height="11" bgcolor="#FFFFFF"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="950">
<tr valign="top">
	<td><div class="recipies">
      <div class="chowback"><a href="javascript:history.go(-1)"><img src="images/backbutton.jpg" alt="" width="35" height="33" border="0" /></a></div>
	  <div class="chowtext1">About Robin Benzle</div>
	  <div class="chowsubscribe">new videos every friday</div>
	  <div class="break"></div>
	  <div class="recipeholder1">
        <div class="recipetopper1">&nbsp;</div>
	    <div class="recipebody1">
          <div class="recipetitleholder1">
            <div class="titletoppadding"> <span class="style17">&nbsp;</span><br />
              
              <br />
               <%=(rsabout.Fields.Item("about").Value)%></div>
          </div>
	      </div>
	    <div class="recipefooter">&nbsp;</div>
	    <br />
      </div>
	  </div>
	  <p style="font-size: 12px;">&nbsp;</p></td>
	<td width="190">
    
    <div align="center"><img src="images/px1.gif" width="1" height="1" alt="" border="0">
	   <div class="adpadding">
          <script type="text/javascript"><!--
google_ad_client = "pub-5991804078070605";
/* 160x600, created 2/10/09 */
google_ad_slot = "8395045204";
google_ad_width = 160;
google_ad_height = 600;
//-->
        </script>
          <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </script>
        </div>
	  </div></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="950">
<tr>
	<td><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
  <td height="25">&nbsp;</td>
</tr>
<tr>
	<td height="20" valign="middle" bgcolor="#DDDDDD"><div class="footertext">Copyright &copy; 
	      <SCRIPT>
<!--
var year=new Date();
year=year.getYear();
if (year<1900) year+=1900;
document.write(year);
//-->
        </SCRIPT> 
	  by Robin Benzle. All Rights Reserved</div></td>
</tr>
<tr>
	<td align="center" height="60">
    
 
   <div align="center">
 
     <div class="footerholder"> 
         
       <div class="buttonleft"><a href="aboutrobin.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('About Robin','','images/buttonaboutrobinon.jpg',1)"><img src="images/buttonaboutrobinoff.jpg" name="About Robin" width="117" height="20" border="0" id="About Robin" /></a></div>
       <div class="buttonmiddle"><a href="subscribe.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Subscribe','','images/buttonsubscribeon.jpg',1)"><img src="images/buttonsubscribeoff.jpg" name="Subscribe" width="148" height="20" border="0" id="Subscribe" /></a></div>
       <div class="buttonmiddle"><a href="advertise.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Advertise','','images/buttonadvertiseon.jpg',1)"><img src="images/buttonadvertiseoff.jpg" name="Advertise" width="119" height="20" border="0" id="Advertise" /></a></div>
       <div class="buttonright"><a href="contact.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','images/buttoncontacton.jpg',1)"><img src="images/buttoncontactoff.jpg" name="contact" width="69" height="20" border="0" id="contact" /></a></div>
     </div>
     
   </div>
    
      </td>
	</tr>
</table>
	</td>
	<td valign="bottom" background="images/bg_right.gif"><img src="images/bg_right.gif" alt="" width="17" height="16" border="0"></td>
	<td width="50%" background="images/bg.gif"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
</table>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7467963-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
<%
rsabout.Close()
Set rsabout = Nothing
%>

Open in new window

0
Comment
Question by:elliottbenzle
  • 2
4 Comments
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 23639435
I checked the page in Firefox 3, IE 6, IE 7 and IE 8 beta, and I don't see the page cutting off early in either of them.
0
 
LVL 9

Expert Comment

by:knonie
ID: 23640565
This tag is not present in your code, and is not displaying in any common browser.

Perhaps, due to some other temporary reason, this page showed this behavior at your side.

:-)
0
 
LVL 31

Accepted Solution

by:
Wayne Barron earned 2000 total points
ID: 23640690
nothing wrong here. (IE6, IE7)
The only thing that I found wrong was the flash banner has a Debugging issue.
And would not load all the way.
Other then that, nice site layout.
I like the Paper, nice.

Carrzkiss
0
 
LVL 9

Expert Comment

by:knonie
ID: 23640710
If you still see that commented tag in browser, note the location where it shows, and then see your source code for that location to find out what's causing it.

There might be some script that needs fixing, perhaps in your "includes"

:-)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question