Forums

ASP

This topic is locked

repeat region with show if

Posted 26 Jan 2006 16:37:33
1
has voted
26 Jan 2006 16:37:33 andy bertaut posted:
After not getting anywhere with the problem i outlined in my last post, i have decided to rework my pages....i will spare everyone the long boring story and just ask is there some issue with using repeat regions with a show if behaviour? The show ifs are working fine, but the repeat region isnt showing at all. code below. thanks.

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!--#include file="../WA_eCart/WA_eCart_Definition_JS.asp" -->
<!--#include file="../WA_eCart/Wizard_Cart_JS.asp" -->
<!--#include file="../Connections/connWIZARD06.asp" -->
<%
var rsPAPERA34__MMColParam = "1";
if (String(Request.QueryString("ProductCode") != "undefined" &&
String(Request.QueryString("ProductCode") != "" {
rsPAPERA34__MMColParam = String(Request.QueryString("ProductCode");
}
%>
<%
var rsPAPERA34 = Server.CreateObject("ADODB.Recordset";
rsPAPERA34.ActiveConnection = MM_connWIZARD06_STRING;
rsPAPERA34.Source = "SELECT * FROM paper_a3_4 WHERE ProductCode = '"+ rsPAPERA34__MMColParam.replace(/'/g, "''" + "'";
rsPAPERA34.CursorType = 2;
rsPAPERA34.CursorLocation = 3;
rsPAPERA34.LockType = 1;
rsPAPERA34.Open();
var rsPAPERA34_numRows = 0;
%>
<%
var rsBOOKSACC__MMColParam = "1";
if (String(Request.QueryString("ProductCode") != "undefined" &&
String(Request.QueryString("ProductCode") != "" {
rsBOOKSACC__MMColParam = String(Request.QueryString("ProductCode");
}
%>
<%
var rsBOOKSACC = Server.CreateObject("ADODB.Recordset";
rsBOOKSACC.ActiveConnection = MM_connWIZARD06_STRING;
rsBOOKSACC.Source = "SELECT * FROM books_accounts WHERE ProductCode = '"+ rsBOOKSACC__MMColParam.replace(/'/g, "''" + "'";
rsBOOKSACC.CursorType = 2;
rsBOOKSACC.CursorLocation = 3;
rsBOOKSACC.LockType = 1;
rsBOOKSACC.Open();
var rsBOOKSACC_numRows = 0;
%>
<%
var Repeat1__numRows = 10;
var Repeat1__index = 0;
rsPAPERA34_numRows += Repeat1__numRows;
%>
<%
var Repeat2__numRows = 10;
var Repeat2__index = 0;
rsPAPERA34_numRows += Repeat2__numRows;
%>
<%
// WA eCart AddToCart
if (String(Request.Form("Wizard_Cart_1_ATC") != "undefined" || String(Request.Form("Wizard_Cart_1_ATC.x") != "undefined" {
var ATC_itemID = String(Request.Form("Wizard_Cart_1_ID_Add");
var ATC_AddIfIn = 0;
var ATC_RedirectAfter = "";
var ATC_RedirectIfIn = "";
var ATC_RSPos = rsPAPERA34.AbsolutePosition;
rsPAPERA34.MoveFirst();
while (!rsPAPERA34.EOF) {
if (String(rsPAPERA34.Fields("ProductCode".value) == String(ATC_itemID)) {
var ATC_itemName = "" + String((rsPAPERA34.Fields.Item("Description".Value)) + "";// column binding
var ATC_itemDescription = "";// column binding
var ATC_itemWeight = parseFloat("0";// column binding
var ATC_itemQuantity = "" + String(Request.Form("Wizard_Cart_1_Quantity_Add") + "";// column binding
var ATC_itemPrice = parseFloat("" + String((rsPAPERA34.Fields.Item("Expr2".Value)) + "";// column binding
break;
}
rsPAPERA34.MoveNext()
}
rsPAPERA34.AbsolutePosition = ATC_RSPos;
ATC_itemQuantity = parseFloat(ATC_itemQuantity);
if (!isNaN(ATC_itemQuantity) && ATC_itemQuantity != 0) {
Wizard_Cart.AddToCart(ATC_AddIfIn, ATC_RedirectIfIn, ATC_itemID, ATC_itemName, ATC_itemDescription, ATC_itemWeight, ATC_itemQuantity, ATC_itemPrice);
if (ATC_RedirectAfter != "" && Wizard_Cart_redirStr == "" {
Wizard_Cart_redirStr = ATC_RedirectAfter;
}
Session("WAEC_ContinueRedirect" = String(Request.ServerVariables("Script_Name") + "?" + String(Request.QueryString());
}
}
%>
<%
// WA eCart AddToCart
if (String(Request.Form("Wizard_Cart_2_ATC") != "undefined" || String(Request.Form("Wizard_Cart_2_ATC.x") != "undefined" {
var ATC_itemID = String(Request.Form("Wizard_Cart_2_ID_Add");
var ATC_AddIfIn = 0;
var ATC_RedirectAfter = "";
var ATC_RedirectIfIn = "";
var ATC_RSPos = rsBOOKSACC.AbsolutePosition;
rsBOOKSACC.MoveFirst();
while (!rsBOOKSACC.EOF) {
if (String(rsBOOKSACC.Fields("ProductCode".value) == String(ATC_itemID)) {
var ATC_itemName = "" + String((rsBOOKSACC.Fields.Item("Description".Value)) + "";// column binding
var ATC_itemDescription = "";// column binding
var ATC_itemWeight = parseFloat("0";// column binding
var ATC_itemQuantity = "" + String(Request.Form("Wizard_Cart_2_Quantity_Add") + "";// column binding
var ATC_itemPrice = parseFloat("" + String((rsBOOKSACC.Fields.Item("Expr2".Value)) + "";// column binding
break;
}
rsBOOKSACC.MoveNext()
}
rsBOOKSACC.AbsolutePosition = ATC_RSPos;
ATC_itemQuantity = parseFloat(ATC_itemQuantity);
if (!isNaN(ATC_itemQuantity) && ATC_itemQuantity != 0) {
Wizard_Cart.AddToCart(ATC_AddIfIn, ATC_RedirectIfIn, ATC_itemID, ATC_itemName, ATC_itemDescription, ATC_itemWeight, ATC_itemQuantity, ATC_itemPrice);
if (ATC_RedirectAfter != "" && Wizard_Cart_redirStr == "" {
Wizard_Cart_redirStr = ATC_RedirectAfter;
}
Session("WAEC_ContinueRedirect" = String(Request.ServerVariables("Script_Name") + "?" + String(Request.QueryString());
}
}
%>
<%
// WA eCart Redirect
if (Wizard_Cart_redirStr != "" {
Response.Redirect(Wizard_Cart_redirStr);
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function DoCurrency(str, nDigitsAfterDecimal, nLeadingDigit, nUseParensForNeg, nGroupDigits)
DoCurrency = FormatCurrency(str, nDigitsAfterDecimal, nLeadingDigit, nUseParensForNeg, nGroupDigits)
End Function
</SCRIPT>
<html><!-- InstanceBegin template="/Templates/wizard06.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<title>Wizard - Your Quality Office Products Supplier                     </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="Wizard.ie" content="Your Quality Office Products Supplier.">
<meta name="description" content="Wizard - Your Quality Office Products Supplier. Ireland's Premier Office Products Supplier.">
<meta name="keywords" content="wizard, office supplies, stationery, stationary, online ordering, online catalogue, safety & hygiene, pc media & accessories, postroom & packaging, quality office supplier, quality office products, clearance sale, special offers">
<meta name="Author" content="This site designed by Andy Bertaut for Wizard">
<meta name="Copyright" content="(C) 2006 Slevin-Group">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
background-color: #E1DFF4;
}
-->
</style>
<link href="../wiz.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">function mmLoadMenus() {
if (window.mm_menu_0103133907_0) return;
window.mm_menu_0103133907_0 = new Menu("root",181,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103133907_0.addMenuItem("Adhesives & Tapes","location='../asp/adhesives_tapes.asp'";
mm_menu_0103133907_0.addMenuItem("Artist & Graphic Supplies","location='../asp/artist_graphic.asp'";
mm_menu_0103133907_0.addMenuItem("Bespoke Printing","location='../asp/bespoke_print.asp'";
mm_menu_0103133907_0.addMenuItem("Books & Pads","location='../asp/books_pads.asp'";
mm_menu_0103133907_0.addMenuItem("Catering","location='../asp/catering.asp'";
mm_menu_0103133907_0.addMenuItem("Computer Accessories","location='../asp/computer_accessories.asp'";
mm_menu_0103133907_0.addMenuItem("Computer Hardware","location='../asp/computer_hardware.asp'";
mm_menu_0103133907_0.addMenuItem("Computer Media Supplies","location='../asp/computer_media_sup.asp'";
mm_menu_0103133907_0.fontWeight="bold";
mm_menu_0103133907_0.hideOnMouseOut=true;
mm_menu_0103133907_0.bgColor='#6A63CB';
mm_menu_0103133907_0.menuBorder=1;
mm_menu_0103133907_0.menuLiteBgColor='#6A63CB';
mm_menu_0103133907_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103151900_0 = new Menu("root",172,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103151900_0.addMenuItem("Desktop Accessories","location='../asp/desktop_accessories.asp'";
mm_menu_0103151900_0.addMenuItem("Envelopes","location='../asp/envelopes.asp'";
mm_menu_0103151900_0.addMenuItem("Files, Pockets & Binding","location='../asp/files_pockets_bind.asp'";
mm_menu_0103151900_0.addMenuItem("Furniture","location='../asp/furniture.asp'";
mm_menu_0103151900_0.fontWeight="bold";
mm_menu_0103151900_0.hideOnMouseOut=true;
mm_menu_0103151900_0.bgColor='#6A63CB';
mm_menu_0103151900_0.menuBorder=1;
mm_menu_0103151900_0.menuLiteBgColor='#6A63CB';
mm_menu_0103151900_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103152132_0 = new Menu("root",182,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103152132_0.addMenuItem("Janitorial","location='../asp/janitorial.asp'";
mm_menu_0103152132_0.addMenuItem("Labels","location='../asp/labels.asp'";
mm_menu_0103152132_0.addMenuItem("Legal & Personal Supplies","location='../asp/legal_personal.asp'";
mm_menu_0103152132_0.fontWeight="bold";
mm_menu_0103152132_0.hideOnMouseOut=true;
mm_menu_0103152132_0.bgColor='#6A63CB';
mm_menu_0103152132_0.menuBorder=1;
mm_menu_0103152132_0.menuLiteBgColor='#6A63CB';
mm_menu_0103152132_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103152215_0 = new Menu("root",170,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103152215_0.addMenuItem("Mailroom Warehouse","location='../asp/mailroom_warehouse.asp'";
mm_menu_0103152215_0.addMenuItem("Office Envirnoment","location='../asp/office_env.asp'";
mm_menu_0103152215_0.addMenuItem("Office Machine Supplies","location='../asp/office _mach_supp.asp'";
mm_menu_0103152215_0.addMenuItem("Office Machines","location='../asp/office _mach.asp'";
mm_menu_0103152215_0.addMenuItem("Office Planning","location='../asp/office_planning.asp'";
mm_menu_0103152215_0.fontWeight="bold";
mm_menu_0103152215_0.hideOnMouseOut=true;
mm_menu_0103152215_0.bgColor='#6A63CB';
mm_menu_0103152215_0.menuBorder=1;
mm_menu_0103152215_0.menuLiteBgColor='#6A63CB';
mm_menu_0103152215_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103152326_0 = new Menu("root",221,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103152326_0.addMenuItem("Paper","location='../asp/paper.asp'";
mm_menu_0103152326_0.addMenuItem("Personal Planning & Accessories","location='../asp/personal_plan_acc.asp'";
mm_menu_0103152326_0.addMenuItem("Presentation Equipment","location='../asp/presentation_equip.asp'";
mm_menu_0103152326_0.addMenuItem("Presentation Supplies","location='../asp/presentation_supp.asp'";
mm_menu_0103152326_0.addMenuItem("Printer/Fax/Copier/WP Supplies","location='../asp/printer_copier.asp'";
mm_menu_0103152326_0.fontWeight="bold";
mm_menu_0103152326_0.hideOnMouseOut=true;
mm_menu_0103152326_0.bgColor='#6A63CB';
mm_menu_0103152326_0.menuBorder=1;
mm_menu_0103152326_0.menuLiteBgColor='#6A63CB';
mm_menu_0103152326_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103152527_0 = new Menu("root",129,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103152527_0.addMenuItem("Safety & Security","location='../asp/safety_sec.asp'";
mm_menu_0103152527_0.fontWeight="bold";
mm_menu_0103152527_0.hideOnMouseOut=true;
mm_menu_0103152527_0.bgColor='#6A63CB';
mm_menu_0103152527_0.menuBorder=1;
mm_menu_0103152527_0.menuLiteBgColor='#6A63CB';
mm_menu_0103152527_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103152559_0 = new Menu("root",159,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103152559_0.addMenuItem("Wall & Notice Boards","location='../asp/wall_notice.asp'";
mm_menu_0103152559_0.addMenuItem("Writing Supplies","location='../asp/writing_supp.asp'";
mm_menu_0103152559_0.fontWeight="bold";
mm_menu_0103152559_0.hideOnMouseOut=true;
mm_menu_0103152559_0.bgColor='#6A63CB';
mm_menu_0103152559_0.menuBorder=1;
mm_menu_0103152559_0.menuLiteBgColor='#6A63CB';
mm_menu_0103152559_0.menuBorderBgColor='#6A63CB';

window.mm_menu_0109142338_0 = new Menu("root",100,17,"Verdana, Arial, Helvetica, sans-serif",11,"#059EB0","#036A76","#E7EBEC","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0109142338_0.addMenuItem("No Products";
mm_menu_0109142338_0.fontWeight="bold";
mm_menu_0109142338_0.hideOnMouseOut=true;
mm_menu_0109142338_0.bgColor='#CCCCCC';
mm_menu_0109142338_0.menuBorder=1;
mm_menu_0109142338_0.menuLiteBgColor='#FFFFFF';
mm_menu_0109142338_0.menuBorderBgColor='#079DAE';

mm_menu_0109142338_0.writeMenus();
} // mmLoadMenus()

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];}}
}
//-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--

function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape"&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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 tmt_compareField(f1,f2,rule,errorMsg){ var myErr = ""; if(eval("MM_findObj('"+f1+"').value"+rule+"MM_findObj('"+f2+"').value"){ alert(unescape(errorMsg));myErr += 'errorMsg';} document.MM_returnValue = (myErr == "";}
//-->
</script>
<style type="text/css">
<!--
.smallboldfooter {font-family: Verdana,Arial,Helvetica; font-size: 10px; color: #999999;}
.smallnormal {font-family: Verdana,Arial,Helvetica; font-size: 10px; }
.buttonstyle {font-family: Verdana; font-size: 10px; font-weight: bold; color: white; background-color: #8888AA; }
.style1 {font-size: 16px}
.style2 {font-size: 12px}
-->
</style>
<script language="JavaScript" src="../mm_menu.js"></script>
</head>

<body>
<script language="JavaScript1.2">mmLoadMenus();</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100" valign="top" bgcolor="#3C349C"> </td>
<td width="375" align="left" valign="top"><img src="../images/banner_lrg.gif" alt="Wizard - Your Quality Office Products Supplier!" width="375" height="77"></td>
<td width="282" align="left" valign="top"><img src="../images/logo.gif" alt="Wizard - Your Quality Office Products Supplier" width="282" height="77"></td>
&lt;td align="left" valign="middle" style="filter<img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>rogidXImageTransform.Microsoft.Gradient(startColorstr='#FCEE04', endColorstr='#FFFFFF', gradientType='1');" &gt;&lt;!-- #BeginLibraryItem "/Library/cart.lbi" --&gt;
&lt;table width="281" height="53" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td colspan="2" rowspan="2" valign="bottom"&gt;&lt;div align="right"&gt;&lt;/div&gt;
&lt;div align="left"&gt;&lt;/div&gt; &lt;div align="right"&gt;&lt;/div&gt; &lt;div align="right"&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td width="156" rowspan="2" valign="top"&gt;&lt;div align="right"&gt;&lt;/div&gt; &lt;div align="right"&gt;&lt;a href="shopping_cart.asp"&gt;&lt;img src="../images/cart.gif" alt="View Cart and Checkout" width="150" height="50" border="0"&gt;&lt;/a&gt;&lt;/div&gt; &lt;div align="right"&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td width="46" height="27" align="center" valign="middle"&gt;&lt;div align="right"&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="46" align="center" valign="middle"&gt;&lt;div align="right"&gt; &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;!-- #EndLibraryItem --&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br/&gt;
&lt;table width="990" height="615" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td width="170" height="10" valign="top"&gt;&nbsp;&lt;/td&gt;
&lt;td width="820" height="10" valign="top"&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="170" height="539" valign="bottom"&gt;
&lt;!-- Navigation Section. --&gt;
&lt;div id="navdiv"&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" class="style1"&gt;Product Index &lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link17" id="link1" onMouseOver="MM_showMenu(window.mm_menu_0103133907_0,116,0,null,'link17')" onMouseOut="MM_startTimeout();"&gt;A - C&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link14" id="link3" onMouseOver="MM_showMenu(window.mm_menu_0103151900_0,116,0,null,'link14')" onMouseOut="MM_startTimeout();"&gt;D - F&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link4" id="link12" onMouseOver="MM_showMenu(window.mm_menu_0109142338_0,116,0,null,'link4')" onMouseOut="MM_startTimeout();"&gt;G - I&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link2" id="link5" onMouseOver="MM_showMenu(window.mm_menu_0103152132_0,116,0,null,'link2')" onMouseOut="MM_startTimeout();"&gt;J - L&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link15" id="link7" onMouseOver="MM_showMenu(window.mm_menu_0103152215_0,116,0,null,'link15')" onMouseOut="MM_startTimeout();"&gt;M - O&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link6" id="link9" onMouseOver="MM_showMenu(window.mm_menu_0103152326_0,116,0,null,'link6')" onMouseOut="MM_startTimeout();"&gt;P - R&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link8" id="link11" onMouseOver="MM_showMenu(window.mm_menu_0103152527_0,116,0,null,'link8')" onMouseOut="MM_startTimeout();"&gt;S - U&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link10" id="link13" onMouseOver="MM_showMenu(window.mm_menu_0103152559_0,116,0,null,'link10')" onMouseOut="MM_startTimeout();"&gt;V - Z&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="quick_order.asp"&gt;Quick Order&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="terms_conditions.asp" class="style2"&gt;Terms & Conditions&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;!-- End Of Navigation Section --&gt;
&lt;/td&gt;
&lt;td align="left" valign="top"&gt;&lt;!-- InstanceBeginEditable name="EditRegion1" --&gt;
&lt;% if (!rsPAPERA34.EOF || !rsPAPERA34.BOF) { %&gt;
&lt;% while ((Repeat1__numRows-- != 0) && (!rsPAPERA34.EOF)) { %&gt;
&lt;table width="650" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td width="80" rowspan="4"&gt;&lt;img src="&lt;%=(rsPAPERA34.Fields.Item("Expr1".Value)%&gt;" width="80" height="80"&gt;&lt;/td&gt;
&lt;td colspan="4" class="buttonstyle"&gt;&lt;%=(rsPAPERA34.Fields.Item("Description".Value)%&gt;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr id="maintbl"&gt;
&lt;td width="100"&gt;Product Code &lt;/td&gt;
&lt;td width="100"&gt;&lt;%=(rsPAPERA34.Fields.Item("ProductCode".Value)%&gt;&lt;/td&gt;
&lt;td width="100"&gt;Price&lt;/td&gt;
&lt;td width="100"&gt;&lt;%= DoCurrency((rsPAPERA34.Fields.Item("Expr2".Value), 2, -2, -2, -2) %&gt;&lt;/td&gt;
&lt;td width="170"&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td colspan="2"&gt;&lt;form name="Wizard_Cart_1_ATC_&lt;%=rsPAPERA34.Fields("ProductCode".value%&gt;" method="POST" action="&lt;%=String(Request.ServerVariables("SCRIPT_NAME")%&gt;&lt;%=((String(Request.ServerVariables("QUERY_STRING") != "undefined" && Request.ServerVariables("QUERY_STRING" != ""?"?"+Request.ServerVariables("QUERY_STRING":""%&gt;"&gt;
&lt;input type="hidden" name="Wizard_Cart_1_ID_Add" value="&lt;%=rsPAPERA34.Fields("ProductCode".value%&gt;" &gt;
&lt;input type="text" name="Wizard_Cart_1_Quantity_Add" value="1" size="4" &gt;
&lt;input type="submit" value="Add To Cart" name="Wizard_Cart_1_ATC"&gt;
&lt;/form&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;%
Repeat1__index++;
rsPAPERA34.MoveNext();
}
%&gt;
&lt;% } // end !rsPAPERA34.EOF || !rsPAPERA34.BOF %&gt;
&lt;br/&gt;
&lt;% while ((Repeat2__numRows-- != 0) && (!rsPAPERA34.EOF)) { %&gt;
&lt;% if (!rsBOOKSACC.EOF || !rsBOOKSACC.BOF) { %&gt;
&lt;table width="650" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td width="80" rowspan="4"&gt;&lt;img src="&lt;%=(rsBOOKSACC.Fields.Item("Expr1".Value)%&gt;" width="80" height="80"&gt;&lt;/td&gt;
&lt;td colspan="4" class="buttonstyle"&gt;&lt;%=(rsBOOKSACC.Fields.Item("Description".Value)%&gt;&lt;/td&gt;
&lt;td width="170"&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr id="maintbl"&gt;
&lt;td width="100"&gt;Product Code &lt;/td&gt;
&lt;td width="100"&gt;&lt;%=(rsBOOKSACC.Fields.Item("ProductCode".Value)%&gt;&lt;/td&gt;
&lt;td width="100"&gt;Price&lt;/td&gt;
&lt;td width="100"&gt;&lt;%= DoCurrency((rsBOOKSACC.Fields.Item("Expr2".Value), 2, -2, -2, -2) %&gt;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td colspan="2"&gt;&lt;form name="Wizard_Cart_2_ATC_&lt;%=rsBOOKSACC.Fields("ProductCode".value%&gt;" method="POST" action="&lt;%=String(Request.ServerVariables("SCRIPT_NAME")%&gt;&lt;%=((String(Request.ServerVariables("QUERY_STRING") != "undefined" && Request.ServerVariables("QUERY_STRING" != ""?"?"+Request.ServerVariables("QUERY_STRING":""%&gt;"&gt;
&lt;input type="hidden" name="Wizard_Cart_2_ID_Add" value="&lt;%=rsBOOKSACC.Fields("ProductCode".value%&gt;" &gt;
&lt;input type="text" name="Wizard_Cart_2_Quantity_Add" value="1" size="4" &gt;
&lt;input type="submit" value="Add To Cart" name="Wizard_Cart_2_ATC"&gt;
&lt;/form&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;% } // end !rsBOOKSACC.EOF || !rsBOOKSACC.BOF %&gt;
&lt;%
Repeat2__index++;
rsPAPERA34.MoveNext();
}
%&gt;
&lt;!-- InstanceEndEditable --&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="bottom"&gt;
&lt;td colspan="2"&gt;
&lt;!-- Quick Nav Table --&gt;&lt;!-- #BeginLibraryItem "/Library/navtbl.lbi" --&gt;
&lt;link href="../wiz.css" rel="stylesheet" type="text/css"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" width="100%"&gt;
&lt;tr&gt;
&lt;td height="1" bgcolor="#000000"&gt;&lt;img src="../images/spacer.gif"&gt;&lt;/td
&gt;&lt;/tr&gt;
&lt;tr id="quicknav"&gt;
&lt;td height="20" align="center" valign="middle" id="quicknav" style="color:white;"&gt; &lt;a href="default.asp" id="quicknav"&gt;Home&lt;/a&gt;&nbsp;|&nbsp; &lt;a href="search.asp" id="quicknav"&gt;Search&lt;/a&gt;&nbsp;|&nbsp; &lt;a href="category_list.asp" id="quicknav"&gt;Categories&lt;/a&gt;&nbsp;|&nbsp; &lt;a href="shopping_cart.asp" id="quicknav"&gt;Shopping
Cart&lt;/a&gt; &nbsp;|&nbsp; &lt;a href="catalogue_request.asp" id="quicknav"&gt;Request
Catalogue&lt;/a&gt; &nbsp;|&nbsp;&lt;a href="quick_order.asp" id="quicknav"&gt;Quick Order &lt;/a&gt;&nbsp;|&nbsp;
&lt;a href="about_us.asp" target="_self" id="quicknav"&gt;About
Us&lt;/a&gt;&nbsp;|&nbsp; &lt;a href="contact_us.asp" target="_self" id="quicknav"&gt;Contact Us&lt;/a&gt; | &lt;a href="mailto: ?subject=I%20Wish%20To%20Report%20An%20Error" id="quicknav"&gt;Report Error &lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="1" bgcolor="#000000"&gt;&lt;img src="../images/spacer.gif"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="center" valign="top" class="smallboldfooter"&gt;&copy;2005 Wizard
Direct&nbsp;&nbsp;FREEPHONE: 1800 923 200 &nbsp;&nbsp;FREEFAX: 1800 923
400 &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;!-- #EndLibraryItem --&gt;&lt;!-- End Of Quick Nav Table --&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;iframe src="file:///C|/Documents%20and%20Settings/abertaut/My%20Documents/My%20Webs/Wizard/asp/cart_prv.asp" name="preview" scrolling="yes" id="preview" style="position:absolute; left:3px; top:400px; width:165px; height:115px; z-index:1"&gt;&nbsp;&lt;/iframe&gt;
&lt;/body&gt;
&lt;!-- InstanceEnd --&gt;&lt;/html&gt;
&lt;%
rsPAPERA34.Close();
%&gt;
&lt;%
rsBOOKSACC.Close();
%&gt;

Replies

Replied 26 Jan 2006 17:29:31
26 Jan 2006 17:29:31 Tom Theys replied:
When I take a quick look at your code, you are using the wrong recordset for the repeat2

&lt;%
var Repeat1__numRows = 10;
var Repeat1__index = 0;
rsPAPERA34_numRows += Repeat1__numRows;
%&gt;
&lt;%
var Repeat2__numRows = 10;
var Repeat2__index = 0;
rsPAPERA34_numRows += Repeat2__numRows;
%&gt;

I think it needs to be

&lt;%
var Repeat1__numRows = 10;
var Repeat1__index = 0;
rsPAPERA34_numRows += Repeat1__numRows;
%&gt;
&lt;%
var Repeat2__numRows = 10;
var Repeat2__index = 0;
rsBOOKSACC_numRows += Repeat2__numRows;
%&gt;

Don't know for sure

Edited by - tothprod on 26 Jan 2006 17:35:20
Replied 26 Jan 2006 18:47:48
26 Jan 2006 18:47:48 andy bertaut replied:
Hi Thom, thanks for the reply
i spotted that right after i posted and fixed it but it didnt change anything relatign to the problem. Thanks anyhoo.
Replied 30 Jan 2006 10:57:53
30 Jan 2006 10:57:53 andy bertaut replied:
hasnt ANYone come across this? I am really up against the clock on this one......
Replied 31 Jan 2006 13:49:14
31 Jan 2006 13:49:14 Tom Theys replied:
try this code, maybe you missed some code in the repeat region.

&lt;%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%&gt;
&lt;!--#include file="../WA_eCart/WA_eCart_Definition_JS.asp" --&gt;
&lt;!--#include file="../WA_eCart/Wizard_Cart_JS.asp" --&gt;
&lt;!--#include file="../Connections/connWIZARD06.asp" --&gt;
&lt;%
var rsPAPERA34__MMColParam = "1";
if (String(Request.QueryString("ProductCode") != "undefined" &&
String(Request.QueryString("ProductCode") != "" {
rsPAPERA34__MMColParam = String(Request.QueryString("ProductCode");
}
%&gt;
&lt;%
var rsPAPERA34 = Server.CreateObject("ADODB.Recordset";
rsPAPERA34.ActiveConnection = MM_connWIZARD06_STRING;
rsPAPERA34.Source = "SELECT * FROM paper_a3_4 WHERE ProductCode = '"+ rsPAPERA34__MMColParam.replace(/'/g, "''" + "'";
rsPAPERA34.CursorType = 2;
rsPAPERA34.CursorLocation = 3;
rsPAPERA34.LockType = 1;
rsPAPERA34.Open();
var rsPAPERA34_numRows = 0;
%&gt;
&lt;%
var rsBOOKSACC__MMColParam = "1";
if (String(Request.QueryString("ProductCode") != "undefined" &&
String(Request.QueryString("ProductCode") != "" {
rsBOOKSACC__MMColParam = String(Request.QueryString("ProductCode");
}
%&gt;
&lt;%
var rsBOOKSACC = Server.CreateObject("ADODB.Recordset";
rsBOOKSACC.ActiveConnection = MM_connWIZARD06_STRING;
rsBOOKSACC.Source = "SELECT * FROM books_accounts WHERE ProductCode = '"+ rsBOOKSACC__MMColParam.replace(/'/g, "''" + "'";
rsBOOKSACC.CursorType = 2;
rsBOOKSACC.CursorLocation = 3;
rsBOOKSACC.LockType = 1;
rsBOOKSACC.Open();
var rsBOOKSACC_numRows = 0;
%&gt;
&lt;%
var Repeat1__numRows = 10;
var Repeat1__index = 0;
rsPAPERA34_numRows += Repeat1__numRows;
%&gt;
&lt;%
var Repeat2__numRows = 10;
var Repeat2__index = 0;
rsBOOKSACC_numRows += Repeat2__numRows;
%&gt;
&lt;%
// WA eCart AddToCart
if (String(Request.Form("Wizard_Cart_1_ATC") != "undefined" || String(Request.Form("Wizard_Cart_1_ATC.x") != "undefined" {
var ATC_itemID = String(Request.Form("Wizard_Cart_1_ID_Add");
var ATC_AddIfIn = 0;
var ATC_RedirectAfter = "";
var ATC_RedirectIfIn = "";
var ATC_RSPos = rsPAPERA34.AbsolutePosition;
rsPAPERA34.MoveFirst();
while (!rsPAPERA34.EOF) {
if (String(rsPAPERA34.Fields("ProductCode".value) == String(ATC_itemID)) {
var ATC_itemName = "" + String((rsPAPERA34.Fields.Item("Description".Value)) + "";// column binding
var ATC_itemDescription = "";// column binding
var ATC_itemWeight = parseFloat("0";// column binding
var ATC_itemQuantity = "" + String(Request.Form("Wizard_Cart_1_Quantity_Add") + "";// column binding
var ATC_itemPrice = parseFloat("" + String((rsPAPERA34.Fields.Item("Expr2".Value)) + "";// column binding
break;
}
rsPAPERA34.MoveNext()
}
rsPAPERA34.AbsolutePosition = ATC_RSPos;
ATC_itemQuantity = parseFloat(ATC_itemQuantity);
if (!isNaN(ATC_itemQuantity) && ATC_itemQuantity != 0) {
Wizard_Cart.AddToCart(ATC_AddIfIn, ATC_RedirectIfIn, ATC_itemID, ATC_itemName, ATC_itemDescription, ATC_itemWeight, ATC_itemQuantity, ATC_itemPrice);
if (ATC_RedirectAfter != "" && Wizard_Cart_redirStr == "" {
Wizard_Cart_redirStr = ATC_RedirectAfter;
}
Session("WAEC_ContinueRedirect" = String(Request.ServerVariables("Script_Name") + "?" + String(Request.QueryString());
}
}
%&gt;
&lt;%
// WA eCart AddToCart
if (String(Request.Form("Wizard_Cart_2_ATC") != "undefined" || String(Request.Form("Wizard_Cart_2_ATC.x") != "undefined" {
var ATC_itemID = String(Request.Form("Wizard_Cart_2_ID_Add");
var ATC_AddIfIn = 0;
var ATC_RedirectAfter = "";
var ATC_RedirectIfIn = "";
var ATC_RSPos = rsBOOKSACC.AbsolutePosition;
rsBOOKSACC.MoveFirst();
while (!rsBOOKSACC.EOF) {
if (String(rsBOOKSACC.Fields("ProductCode".value) == String(ATC_itemID)) {
var ATC_itemName = "" + String((rsBOOKSACC.Fields.Item("Description".Value)) + "";// column binding
var ATC_itemDescription = "";// column binding
var ATC_itemWeight = parseFloat("0";// column binding
var ATC_itemQuantity = "" + String(Request.Form("Wizard_Cart_2_Quantity_Add") + "";// column binding
var ATC_itemPrice = parseFloat("" + String((rsBOOKSACC.Fields.Item("Expr2".Value)) + "";// column binding
break;
}
rsBOOKSACC.MoveNext()
}
rsBOOKSACC.AbsolutePosition = ATC_RSPos;
ATC_itemQuantity = parseFloat(ATC_itemQuantity);
if (!isNaN(ATC_itemQuantity) && ATC_itemQuantity != 0) {
Wizard_Cart.AddToCart(ATC_AddIfIn, ATC_RedirectIfIn, ATC_itemID, ATC_itemName, ATC_itemDescription, ATC_itemWeight, ATC_itemQuantity, ATC_itemPrice);
if (ATC_RedirectAfter != "" && Wizard_Cart_redirStr == "" {
Wizard_Cart_redirStr = ATC_RedirectAfter;
}
Session("WAEC_ContinueRedirect" = String(Request.ServerVariables("Script_Name") + "?" + String(Request.QueryString());
}
}
%&gt;
&lt;%
// WA eCart Redirect
if (Wizard_Cart_redirStr != "" {
Response.Redirect(Wizard_Cart_redirStr);
}
%&gt;
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd"&gt;
&lt;SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT&gt;
function DoCurrency(str, nDigitsAfterDecimal, nLeadingDigit, nUseParensForNeg, nGroupDigits)
DoCurrency = FormatCurrency(str, nDigitsAfterDecimal, nLeadingDigit, nUseParensForNeg, nGroupDigits)
End Function
&lt;/SCRIPT&gt;
&lt;html&gt;&lt;!-- InstanceBegin template="/Templates/wizard06.dwt" codeOutsideHTMLIsLocked="false" --&gt;
&lt;head&gt;
&lt;title&gt;Wizard - Your Quality Office Products Supplier &lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;META name="Wizard.ie" content="Your Quality Office Products Supplier."&gt;
&lt;meta name="description" content="Wizard - Your Quality Office Products Supplier. Ireland's Premier Office Products Supplier."&gt;
&lt;meta name="keywords" content="wizard, office supplies, stationery, stationary, online ordering, online catalogue, safety & hygiene, pc media & accessories, postroom & packaging, quality office supplier, quality office products, clearance sale, special offers"&gt;
&lt;meta name="Author" content="This site designed by Andy Bertaut for Wizard"&gt;
&lt;meta name="Copyright" content="(C) 2006 Slevin-Group"&gt;
&lt;style type="text/css"&gt;
&lt;!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
background-color: #E1DFF4;
}
--&gt;
&lt;/style&gt;
&lt;link href="../wiz.css" rel="stylesheet" type="text/css"&gt;
&lt;script language="JavaScript" type="text/JavaScript"&gt;function mmLoadMenus() {
if (window.mm_menu_0103133907_0) return;
window.mm_menu_0103133907_0 = new Menu("root",181,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103133907_0.addMenuItem("Adhesives & Tapes","location='../asp/adhesives_tapes.asp'";
mm_menu_0103133907_0.addMenuItem("Artist & Graphic Supplies","location='../asp/artist_graphic.asp'";
mm_menu_0103133907_0.addMenuItem("Bespoke Printing","location='../asp/bespoke_print.asp'";
mm_menu_0103133907_0.addMenuItem("Books & Pads","location='../asp/books_pads.asp'";
mm_menu_0103133907_0.addMenuItem("Catering","location='../asp/catering.asp'";
mm_menu_0103133907_0.addMenuItem("Computer Accessories","location='../asp/computer_accessories.asp'";
mm_menu_0103133907_0.addMenuItem("Computer Hardware","location='../asp/computer_hardware.asp'";
mm_menu_0103133907_0.addMenuItem("Computer Media Supplies","location='../asp/computer_media_sup.asp'";
mm_menu_0103133907_0.fontWeight="bold";
mm_menu_0103133907_0.hideOnMouseOut=true;
mm_menu_0103133907_0.bgColor='#6A63CB';
mm_menu_0103133907_0.menuBorder=1;
mm_menu_0103133907_0.menuLiteBgColor='#6A63CB';
mm_menu_0103133907_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103151900_0 = new Menu("root",172,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103151900_0.addMenuItem("Desktop Accessories","location='../asp/desktop_accessories.asp'";
mm_menu_0103151900_0.addMenuItem("Envelopes","location='../asp/envelopes.asp'";
mm_menu_0103151900_0.addMenuItem("Files, Pockets & Binding","location='../asp/files_pockets_bind.asp'";
mm_menu_0103151900_0.addMenuItem("Furniture","location='../asp/furniture.asp'";
mm_menu_0103151900_0.fontWeight="bold";
mm_menu_0103151900_0.hideOnMouseOut=true;
mm_menu_0103151900_0.bgColor='#6A63CB';
mm_menu_0103151900_0.menuBorder=1;
mm_menu_0103151900_0.menuLiteBgColor='#6A63CB';
mm_menu_0103151900_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103152132_0 = new Menu("root",182,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103152132_0.addMenuItem("Janitorial","location='../asp/janitorial.asp'";
mm_menu_0103152132_0.addMenuItem("Labels","location='../asp/labels.asp'";
mm_menu_0103152132_0.addMenuItem("Legal & Personal Supplies","location='../asp/legal_personal.asp'";
mm_menu_0103152132_0.fontWeight="bold";
mm_menu_0103152132_0.hideOnMouseOut=true;
mm_menu_0103152132_0.bgColor='#6A63CB';
mm_menu_0103152132_0.menuBorder=1;
mm_menu_0103152132_0.menuLiteBgColor='#6A63CB';
mm_menu_0103152132_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103152215_0 = new Menu("root",170,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103152215_0.addMenuItem("Mailroom Warehouse","location='../asp/mailroom_warehouse.asp'";
mm_menu_0103152215_0.addMenuItem("Office Envirnoment","location='../asp/office_env.asp'";
mm_menu_0103152215_0.addMenuItem("Office Machine Supplies","location='../asp/office _mach_supp.asp'";
mm_menu_0103152215_0.addMenuItem("Office Machines","location='../asp/office _mach.asp'";
mm_menu_0103152215_0.addMenuItem("Office Planning","location='../asp/office_planning.asp'";
mm_menu_0103152215_0.fontWeight="bold";
mm_menu_0103152215_0.hideOnMouseOut=true;
mm_menu_0103152215_0.bgColor='#6A63CB';
mm_menu_0103152215_0.menuBorder=1;
mm_menu_0103152215_0.menuLiteBgColor='#6A63CB';
mm_menu_0103152215_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103152326_0 = new Menu("root",221,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103152326_0.addMenuItem("Paper","location='../asp/paper.asp'";
mm_menu_0103152326_0.addMenuItem("Personal Planning & Accessories","location='../asp/personal_plan_acc.asp'";
mm_menu_0103152326_0.addMenuItem("Presentation Equipment","location='../asp/presentation_equip.asp'";
mm_menu_0103152326_0.addMenuItem("Presentation Supplies","location='../asp/presentation_supp.asp'";
mm_menu_0103152326_0.addMenuItem("Printer/Fax/Copier/WP Supplies","location='../asp/printer_copier.asp'";
mm_menu_0103152326_0.fontWeight="bold";
mm_menu_0103152326_0.hideOnMouseOut=true;
mm_menu_0103152326_0.bgColor='#6A63CB';
mm_menu_0103152326_0.menuBorder=1;
mm_menu_0103152326_0.menuLiteBgColor='#6A63CB';
mm_menu_0103152326_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103152527_0 = new Menu("root",129,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103152527_0.addMenuItem("Safety & Security","location='../asp/safety_sec.asp'";
mm_menu_0103152527_0.fontWeight="bold";
mm_menu_0103152527_0.hideOnMouseOut=true;
mm_menu_0103152527_0.bgColor='#6A63CB';
mm_menu_0103152527_0.menuBorder=1;
mm_menu_0103152527_0.menuLiteBgColor='#6A63CB';
mm_menu_0103152527_0.menuBorderBgColor='#6A63CB';
window.mm_menu_0103152559_0 = new Menu("root",159,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FCEE04","#FFFFFF","#3C349C","#6A63CB","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0103152559_0.addMenuItem("Wall & Notice Boards","location='../asp/wall_notice.asp'";
mm_menu_0103152559_0.addMenuItem("Writing Supplies","location='../asp/writing_supp.asp'";
mm_menu_0103152559_0.fontWeight="bold";
mm_menu_0103152559_0.hideOnMouseOut=true;
mm_menu_0103152559_0.bgColor='#6A63CB';
mm_menu_0103152559_0.menuBorder=1;
mm_menu_0103152559_0.menuLiteBgColor='#6A63CB';
mm_menu_0103152559_0.menuBorderBgColor='#6A63CB';

window.mm_menu_0109142338_0 = new Menu("root",100,17,"Verdana, Arial, Helvetica, sans-serif",11,"#059EB0","#036A76","#E7EBEC","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0109142338_0.addMenuItem("No Products";
mm_menu_0109142338_0.fontWeight="bold";
mm_menu_0109142338_0.hideOnMouseOut=true;
mm_menu_0109142338_0.bgColor='#CCCCCC';
mm_menu_0109142338_0.menuBorder=1;
mm_menu_0109142338_0.menuLiteBgColor='#FFFFFF';
mm_menu_0109142338_0.menuBorderBgColor='#079DAE';

mm_menu_0109142338_0.writeMenus();
} // mmLoadMenus()

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&lt;a.length; i++)
if (a[i].indexOf("#"!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//--&gt;
&lt;/script&gt;
&lt;script language="JavaScript" type="text/JavaScript"&gt;
&lt;!--

function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape"&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?")&gt;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&lt;d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i&lt;d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function tmt_compareField(f1,f2,rule,errorMsg){ var myErr = ""; if(eval("MM_findObj('"+f1+"').value"+rule+"MM_findObj('"+f2+"').value"){ alert(unescape(errorMsg));myErr += 'errorMsg';} document.MM_returnValue = (myErr == "";}
//--&gt;
&lt;/script&gt;
&lt;style type="text/css"&gt;
&lt;!--
.smallboldfooter {font-family: Verdana,Arial,Helvetica; font-size: 10px; color: #999999;}
.smallnormal {font-family: Verdana,Arial,Helvetica; font-size: 10px; }
.buttonstyle {font-family: Verdana; font-size: 10px; font-weight: bold; color: white; background-color: #8888AA; }
.style1 {font-size: 16px}
.style2 {font-size: 12px}
--&gt;
&lt;/style&gt;
&lt;script language="JavaScript" src="../mm_menu.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;script language="JavaScript1.2"&gt;mmLoadMenus();&lt;/script&gt;
&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td width="100" valign="top" bgcolor="#3C349C"&gt; &lt;/td&gt;
&lt;td width="375" align="left" valign="top"&gt;&lt;img src="../images/banner_lrg.gif" alt="Wizard - Your Quality Office Products Supplier!" width="375" height="77"&gt;&lt;/td&gt;
&lt;td width="282" align="left" valign="top"&gt;&lt;img src="../images/logo.gif" alt="Wizard - Your Quality Office Products Supplier" width="282" height="77"&gt;&lt;/td&gt;
&lt;td align="left" valign="middle" style="filterrogidXImageTransform.Microsoft.Gradient(startColorstr='#FCEE04', endColorstr='#FFFFFF', gradientType='1');" &gt;&lt;!-- #BeginLibraryItem "/Library/cart.lbi" --&gt;
&lt;table width="281" height="53" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td colspan="2" rowspan="2" valign="bottom"&gt;&lt;div align="right"&gt;&lt;/div&gt;
&lt;div align="left"&gt;&lt;/div&gt; &lt;div align="right"&gt;&lt;/div&gt; &lt;div align="right"&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td width="156" rowspan="2" valign="top"&gt;&lt;div align="right"&gt;&lt;/div&gt; &lt;div align="right"&gt;&lt;a href="shopping_cart.asp"&gt;&lt;img src="../images/cart.gif" alt="View Cart and Checkout" width="150" height="50" border="0"&gt;&lt;/a&gt;&lt;/div&gt; &lt;div align="right"&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td width="46" height="27" align="center" valign="middle"&gt;&lt;div align="right"&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="46" align="center" valign="middle"&gt;&lt;div align="right"&gt; &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;!-- #EndLibraryItem --&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br/&gt;
&lt;table width="990" height="615" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td width="170" height="10" valign="top"&gt; &lt;/td&gt;
&lt;td width="820" height="10" valign="top"&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="170" height="539" valign="bottom"&gt;
&lt;!-- Navigation Section. --&gt;
&lt;div id="navdiv"&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" class="style1"&gt;Product Index &lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link17" id="link1" onMouseOver="MM_showMenu(window.mm_menu_0103133907_0,116,0,null,'link17')" onMouseOut="MM_startTimeout();"&gt;A - C&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link14" id="link3" onMouseOver="MM_showMenu(window.mm_menu_0103151900_0,116,0,null,'link14')" onMouseOut="MM_startTimeout();"&gt;D - F&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link4" id="link12" onMouseOver="MM_showMenu(window.mm_menu_0109142338_0,116,0,null,'link4')" onMouseOut="MM_startTimeout();"&gt;G - I&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link2" id="link5" onMouseOver="MM_showMenu(window.mm_menu_0103152132_0,116,0,null,'link2')" onMouseOut="MM_startTimeout();"&gt;J - L&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link15" id="link7" onMouseOver="MM_showMenu(window.mm_menu_0103152215_0,116,0,null,'link15')" onMouseOut="MM_startTimeout();"&gt;M - O&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link6" id="link9" onMouseOver="MM_showMenu(window.mm_menu_0103152326_0,116,0,null,'link6')" onMouseOut="MM_startTimeout();"&gt;P - R&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link8" id="link11" onMouseOver="MM_showMenu(window.mm_menu_0103152527_0,116,0,null,'link8')" onMouseOut="MM_startTimeout();"&gt;S - U&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="#" name="link10" id="link13" onMouseOver="MM_showMenu(window.mm_menu_0103152559_0,116,0,null,'link10')" onMouseOut="MM_startTimeout();"&gt;V - Z&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="quick_order.asp"&gt;Quick Order&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div align="center"&gt;&lt;a href="terms_conditions.asp" class="style2"&gt;Terms & Conditions&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;!-- End Of Navigation Section --&gt;
&lt;/td&gt;
&lt;td align="left" valign="top"&gt;&lt;!-- InstanceBeginEditable name="EditRegion1" --&gt;
&lt;% if (!rsPAPERA34.EOF || !rsPAPERA34.BOF) { %&gt;
&lt;% while ((Repeat1__numRows-- != 0) && (!rsPAPERA34.EOF)) { %&gt;
&lt;table width="650" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td width="80" rowspan="4"&gt;&lt;img src="&lt;%=(rsPAPERA34.Fields.Item("Expr1".Value)%&gt;" width="80" height="80"&gt;&lt;/td&gt;
&lt;td colspan="4" class="buttonstyle"&gt;&lt;%=(rsPAPERA34.Fields.Item("Description".Value)%&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id="maintbl"&gt;
&lt;td width="100"&gt;Product Code &lt;/td&gt;
&lt;td width="100"&gt;&lt;%=(rsPAPERA34.Fields.Item("ProductCode".Value)%&gt;&lt;/td&gt;
&lt;td width="100"&gt;Price&lt;/td&gt;
&lt;td width="100"&gt;&lt;%= DoCurrency((rsPAPERA34.Fields.Item("Expr2".Value), 2, -2, -2, -2) %&gt;&lt;/td&gt;
&lt;td width="170"&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td colspan="2"&gt;&lt;form name="Wizard_Cart_1_ATC_&lt;%=rsPAPERA34.Fields("ProductCode".value%&gt;" method="POST" action="&lt;%=String(Request.ServerVariables("SCRIPT_NAME")%&gt;&lt;%=((String(Request.ServerVariables("QUERY_STRING") != "undefined" && Request.ServerVariables("QUERY_STRING" != ""?"?"+Request.ServerVariables("QUERY_STRING":""%&gt;"&gt;
&lt;input type="hidden" name="Wizard_Cart_1_ID_Add" value="&lt;%=rsPAPERA34.Fields("ProductCode".value%&gt;" &gt;
&lt;input type="text" name="Wizard_Cart_1_Quantity_Add" value="1" size="4" &gt;
&lt;input type="submit" value="Add To Cart" name="Wizard_Cart_1_ATC"&gt;
&lt;/form&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;%
Repeat1__index++;
rsPAPERA34.MoveNext();
}
%&gt;
&lt;% } // end !rsPAPERA34.EOF || !rsPAPERA34.BOF %&gt;
&lt;br/&gt;
&lt;% while ((Repeat2__numRows-- != 0) && (!rsBOOKSACC.EOF)) { %&gt;
&lt;% if (!rsBOOKSACC.EOF || !rsBOOKSACC.BOF) { %&gt;
&lt;table width="650" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td width="80" rowspan="4"&gt;&lt;img src="&lt;%=(rsBOOKSACC.Fields.Item("Expr1".Value)%&gt;" width="80" height="80"&gt;&lt;/td&gt;
&lt;td colspan="4" class="buttonstyle"&gt;&lt;%=(rsBOOKSACC.Fields.Item("Description".Value)%&gt;&lt;/td&gt;
&lt;td width="170"&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id="maintbl"&gt;
&lt;td width="100"&gt;Product Code &lt;/td&gt;
&lt;td width="100"&gt;&lt;%=(rsBOOKSACC.Fields.Item("ProductCode".Value)%&gt;&lt;/td&gt;
&lt;td width="100"&gt;Price&lt;/td&gt;
&lt;td width="100"&gt;&lt;%= DoCurrency((rsBOOKSACC.Fields.Item("Expr2".Value), 2, -2, -2, -2) %&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td colspan="2"&gt;&lt;form name="Wizard_Cart_2_ATC_&lt;%=rsBOOKSACC.Fields("ProductCode".value%&gt;" method="POST" action="&lt;%=String(Request.ServerVariables("SCRIPT_NAME")%&gt;&lt;%=((String(Request.ServerVariables("QUERY_STRING") != "undefined" && Request.ServerVariables("QUERY_STRING" != ""?"?"+Request.ServerVariables("QUERY_STRING":""%&gt;"&gt;
&lt;input type="hidden" name="Wizard_Cart_2_ID_Add" value="&lt;%=rsBOOKSACC.Fields("ProductCode".value%&gt;" &gt;
&lt;input type="text" name="Wizard_Cart_2_Quantity_Add" value="1" size="4" &gt;
&lt;input type="submit" value="Add To Cart" name="Wizard_Cart_2_ATC"&gt;
&lt;/form&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;% } // end !rsBOOKSACC.EOF || !rsBOOKSACC.BOF %&gt;
&lt;%
Repeat2__index++;
rsBOOKSACC.MoveNext();
}
%&gt;
&lt;!-- InstanceEndEditable --&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="bottom"&gt;
&lt;td colspan="2"&gt;
&lt;!-- Quick Nav Table --&gt;&lt;!-- #BeginLibraryItem "/Library/navtbl.lbi" --&gt;
&lt;link href="../wiz.css" rel="stylesheet" type="text/css"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" width="100%"&gt;
&lt;tr&gt;
&lt;td height="1" bgcolor="#000000"&gt;&lt;img src="../images/spacer.gif"&gt;&lt;/td
&gt;&lt;/tr&gt;
&lt;tr id="quicknav"&gt;
&lt;td height="20" align="center" valign="middle" id="quicknav" style="color:white;"&gt; &lt;a href="default.asp" id="quicknav"&gt;Home&lt;/a&gt; | &lt;a href="search.asp" id="quicknav"&gt;Search&lt;/a&gt; | &lt;a href="category_list.asp" id="quicknav"&gt;Categories&lt;/a&gt; | &lt;a href="shopping_cart.asp" id="quicknav"&gt;Shopping
Cart&lt;/a&gt; | &lt;a href="catalogue_request.asp" id="quicknav"&gt;Request
Catalogue&lt;/a&gt; | &lt;a href="quick_order.asp" id="quicknav"&gt;Quick Order &lt;/a&gt; |
&lt;a href="about_us.asp" target="_self" id="quicknav"&gt;About
Us&lt;/a&gt; | &lt;a href="contact_us.asp" target="_self" id="quicknav"&gt;Contact Us&lt;/a&gt; | &lt;a href="mailto: ?subject=I%20Wish%20To%20Report%20An%20Error" id="quicknav"&gt;Report Error &lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="1" bgcolor="#000000"&gt;&lt;img src="../images/spacer.gif"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="center" valign="top" class="smallboldfooter"&gt;©2005 Wizard
Direct FREEPHONE: 1800 923 200 FREEFAX: 1800 923
400 &lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;!-- #EndLibraryItem --&gt;&lt;!-- End Of Quick Nav Table --&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;iframe src="file:///C|/Documents%20and%20Settings/abertaut/My%20Documents/My%20Webs/Wizard/asp/cart_prv.asp" name="preview" scrolling="yes" id="preview" style="position:absolute; left:3px; top:400px; width:165px; height:115px; z-index:1"&gt; &lt;/iframe&gt;
&lt;/body&gt;
&lt;!-- InstanceEnd --&gt;&lt;/html&gt;
&lt;%
rsPAPERA34.Close();
%&gt;
&lt;%
rsBOOKSACC.Close();
%&gt;
Replied 01 Feb 2006 16:47:02
01 Feb 2006 16:47:02 andy bertaut replied:
Thanks Tom
Tired it, but while it does only show the correct set of results, the repeat region isn't happening.
Andy
Replied 01 Feb 2006 17:09:59
01 Feb 2006 17:09:59 Javier Castro replied:
Perhaps its nothing but this doesn't seem right:

src="file:///C|/Documents%20and%20Settings/abertaut/My%20Documents/My%20Webs/Wizard/asp/cart_prv.asp"

if you are testing it on a server this source address may not work.

Cheers,
Javier

PS. sometimes it's only a period or coma, but affects the whole thing.
Replied 02 Feb 2006 16:02:39
02 Feb 2006 16:02:39 andy bertaut replied:
hi
I had a look at that, its an iframe which for some reason keep sretaining the local address not the site relative one, but i have fixed it and it doesnt fix the problem. thanks anyway.

Reply to this topic