...

View Full Version : Unknown Runtime Error IE 7



barkermn01
01-22-2009, 12:11 PM
NEW NUMBER ONE ON WHY I HATE IE:
Retared debug information: "Error: Unknown Runtime Error"

http://www.barkston-online.co.uk/cuttingCalc.php

For Some Reason im getting an error
That microsoft say im building a Table when im not

The Code that is erroring


function costPick($name, $type, $colour, $depth){
if($depth != '' || $depth != undefined){
$return = $data[$name][$type][$colour][$depth];
// var is important
var width = document.getElementById("Width").value; // variable and id names must be unique var is important
var height = document.getElementById("Height").value;
$maxW = $data[$name][$type][$colour][$depth][0];
$maxH = $data[$name][$type][$colour][$depth][1];
$fullP = $data[$name][$type][$colour][$depth][2];
$mm3 = ((width * height) * $depth) / 1000;
$1 = (($maxW * $maxH) * $depth) / 1000;
$2 = $fullP / $1;
$3 = ($mm3 * $2) * 1.6;
$cost = currency($3, 2);
document.getElementById("cost").innerHTML = $cost;
document.getElementById("cost1").value = $cost;
return $return;
}
}

brandonH
01-22-2009, 01:00 PM
what you have there looks fine, but unfortunately there are alot of unknowns because we cannot see what it is you are passing to the function (actual strings in the variable). that may be where the error is at. if possible please post again with the actual data that is passed.

i also went to the page and noticed that google scripts are being loaded into your page. this would not be the first time i have seen someone using google stuff have problems.

barkermn01
01-22-2009, 01:53 PM
erm, i posted a link but the actula page is quite big that's why i showed you the url
but here you go

AJAX.js


function arraySet(){
$data = [];
$data['Perspex'] = [];
$data['Perspex']['Cast Acrylic'] = [];
$data['Perspex']['Cast Acrylic']['Clear'] = [];
$data['Perspex']['Cast Acrylic']['Clear']['3'] = new Array(3050,2030,107.10);
$data['Perspex']['Cast Acrylic']['Clear']['4'] = new Array(3050,2030,142.80);
$data['Perspex']['Cast Acrylic']['Clear']['5'] = new Array(3050,2030,177.41);
$data['Perspex']['Cast Acrylic']['Clear']['6'] = new Array(3050,2030,212.82);
$data['Perspex']['Cast Acrylic']['Clear']['8'] = new Array(3050,2030,284.54);
$data['Perspex']['Cast Acrylic']['Clear']['10'] = new Array(3050,2030,354.90);
$data['Perspex']['Cast Acrylic']['Clear']['12'] = new Array(3050,2030,430.50);
$data['Foamboard'] = []
$data['Foamboard']['Matt'] = []
$data['Foamboard']['Matt']['White'] = []
$data['Foamboard']['Matt']['White']['1'] = new Array(3050,2030,11.10);
$data['Foamboard']['Matt']['White']['2'] = new Array(3050, 2030,14.19);
$data['Foamboard']['Matt']['White']['3'] = new Array(3050, 2030,18.92);
$data['Foamboard']['Matt']['White']['4'] = new Array(3050, 2030,25.85);
$data['Foamboard']['Matt']['White']['5'] = new Array(3050, 2030,30.05);
$data['Foamboard']['Matt']['White']['6'] = new Array(3050, 2030,37.47);
$data['Foamboard']['Matt']['White']['8'] = new Array(3050, 2030,45.90);
$data['Foamboard']['Matt']['White']['10'] = new Array(3050, 2030,56.12);
$data['Foamboard']['Matt']['White']['13'] = new Array(3050, 2030,70.92);
$data['Foamboard']['Matt']['White']['15'] = new Array(3050, 2030,81.71);
$data['Foamboard']['Matt']['White']['19'] = new Array(3050, 2030,105.54);
$data['Foamboard']['Matt']['Cream'] = []
$data['Foamboard']['Matt']['Cream']['3'] = new Array(3050, 2030,47.19);
$data['Foamboard']['Matt']['Cream']['4'] = new Array(3050, 2030,64.19);
$data['Foamboard']['Matt']['Cream']['5'] = new Array(3050, 2030,74.99);
$data['Foamboard']['Matt']['Yellow'] = []
$data['Foamboard']['Matt']['Yellow']['3'] = new Array(3050, 2030,47.19);
$data['Foamboard']['Matt']['Yellow']['4'] = new Array(3050, 2030,64.19);
$data['Foamboard']['Matt']['Yellow']['5'] = new Array(3050, 2030,74.99);
$data['Foamboard']['Matt']['Bright Yellow'] = []
$data['Foamboard']['Matt']['Bright Yellow']['3'] = new Array(3050, 2030,47.19);
$data['Foamboard']['Matt']['Bright Yellow']['4'] = new Array(3050, 2030,64.19);
$data['Foamboard']['Matt']['Bright Yellow']['5'] = new Array(3050, 2030,74.99);
$data['Foamboard']['Matt']['Red'] = []
$data['Foamboard']['Matt']['Red']['3'] = new Array(3050, 2030,47.19);
$data['Foamboard']['Matt']['Red']['4'] = new Array(3050, 2030,64.19);
$data['Foamboard']['Matt']['Red']['5'] = new Array(3050, 2030,74.99);
$data['Foamboard']['Matt']['Lite Blue'] = []
$data['Foamboard']['Matt']['Lite Blue']['3'] = new Array(3050, 2030,47.19);
$data['Foamboard']['Matt']['Lite Blue']['4'] = new Array(3050, 2030,64.19);
$data['Foamboard']['Matt']['Lite Blue']['5'] = new Array(3050, 2030,74.99);
$data['Foamboard']['Matt']['Blue'] = []
$data['Foamboard']['Matt']['Blue']['3'] = new Array(3050, 2030,47.19);
$data['Foamboard']['Matt']['Blue']['4'] = new Array(3050, 2030,64.19);
$data['Foamboard']['Matt']['Blue']['5'] = new Array(3050, 2030,74.99);
$data['Foamboard']['Matt']['Green'] = []
$data['Foamboard']['Matt']['Green']['3'] = new Array(3050, 2030,47.19);
$data['Foamboard']['Matt']['Green']['4'] = new Array(3050, 2030,64.19);
$data['Foamboard']['Matt']['White']['5'] = new Array(3050, 2030,74.99);
$data['Foamboard']['Matt']['Black'] = []
$data['Foamboard']['Matt']['Black']['3'] = new Array(3050, 2030,47.19);
$data['Foamboard']['Matt']['Black']['4'] = new Array(3050, 2030,64.19);
$data['Foamboard']['Matt']['Black']['5'] = new Array(3050, 2030,74.99);
$data['Foamboard']['Matt']['Grey'] = []
$data['Foamboard']['Matt']['Grey']['3'] = new Array(3050, 2030,47.19);
$data['Foamboard']['Matt']['Grey']['4'] = new Array(3050, 2030,64.19);
$data['Foamboard']['Matt']['Grey']['5'] = new Array(3050, 2030,74.99);
$data['PETG'] = []
$data['PETG']['Standard'] = []
$data['PETG']['Standard']['Clear'] = []
$data['PETG']['Standard']['Clear']['3'] = new Array(3050,2050,110.24);
$data['PETG']['Standard']['Clear']['4'] = new Array(3050,2050,147.35);
$data['PETG']['Standard']['Clear']['5'] = new Array(3050,2050,184.44);
$data['PETG']['Standard']['Clear']['6'] = new Array(3050,2050,221.54);
$data['PETG']['Standard']['Clear']['8'] = new Array(3050,2050,294.68);
$data['Polycarbonate'] = []
$data['Polycarbonate']['Standard'] = []
$data['Polycarbonate']['Standard']['Clear'] = []
$data['Polycarbonate']['Standard']['Clear']['3'] = new Array(3050,2050,128.09);
$data['Polycarbonate']['Standard']['Clear']['4'] = new Array(3050,2050,170.79);
$data['Polycarbonate']['Standard']['Clear']['5'] = new Array(3050,2050,213.48);
$data['Polycarbonate']['Standard']['Clear']['6'] = new Array(3050,2050,255.60);
$data['Polycarbonate']['Standard']['Clear']['8'] = new Array(3050,2050,340.46);
$data['Polycarbonate']['Standard']['Clear']['10'] = new Array(3050,2050,424.73);
}

function remOption(selectbox){
document.getElementById(selectbox).length = 0;
}

function addOption(selectbox, value, text, selected )
{
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
if(selected == true)optn.selected = 'selected';
selectbox.options.add(optn);
}

function productsPick(){
for (var $i in $data) {
addOption(document.getElementById("product"), $i, $i);
}
}

function typePick($name){
if($name != '' || $name != undefined){
addOption(document.getElementById("type"), '', '', true);
for (var $i in $data[$name]) {
addOption(document.getElementById("type"), $i, $i);
}
return $return;
}
}

function colourPick($name, $type){
if($type != '' || $type != undefined){
addOption(document.getElementById("colour"), '', '', true);
for (var $i in $data[$name][$type]) {
addOption(document.getElementById("colour"), $i, $i);
}
return $return;
}
}

function depthPick($name, $type, $colour){
if($colour != '' || $dcolour != undefined){
addOption(document.getElementById("depth"), '', '', true);
for (var $i in $data[$name][$type][$colour]) {
addOption(document.getElementById("depth"), $i, $i);
}
return $return;
}
}

function currency(num, dec) {
var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
return result;
}

function resetDrop($name){
document.getElementById($name).innerHTML = '';
}

function costPick($name, $type, $colour, $depth){
if($depth != '' || $depth != undefined){
$return = $data[$name][$type][$colour][$depth];
var width = document.getElementById("Width").value; // variable and id names must be unique var is important
var height = document.getElementById("Height").value;
$maxW = $data[$name][$type][$colour][$depth][0];
$maxH = $data[$name][$type][$colour][$depth][1];
$fullP = $data[$name][$type][$colour][$depth][2];
$mm3 = ((width * height) * $depth) / 1000;
$1 = (($maxW * $maxH) * $depth) / 1000;
$2 = $fullP / $1;
$3 = ($mm3 * $2) * 1.6;
$cost = currency($3, 2);
document.getElementById("cost").innerHTML = $cost;
document.getElementById("cost1").value = $cost;
return $return;
}
}

barkermn01
01-22-2009, 01:54 PM
CUTTINGCALC.php


<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Barkston Online</title>
<base href="http://www.barkston-online.co.uk/">
<script type="text/javascript" language="javascript">
var $product, $type, $colour, $depth;
</script><script type="text/javascript" language="javascript" src="ajax.js"></script>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAWKMA-lu_fO_2cCPPLs58AhT4Abu4kfET0JQnW84XoxUEcI0C8BQzhJlqC--WduebxGyp8mFRmqSzzg" type="text/javascript"></script>
<script src="http://www.google.com/jsapi?key=ABQIAAAAWKMA-lu_fO_2cCPPLs58AhT4Abu4kfET0JQnW84XoxUEcI0C8BQzhJlqC--WduebxGyp8mFRmqSzzg" type="text/javascript"></script>
<script language="Javascript" type="text/javascript">
//<![CDATA[

google.load("search", "1");

function OnLoad() {
// Create a search control
var searchControl = new google.search.SearchControl();

// Add in a full set of searchers
var localSearch = new google.search.LocalSearch();
searchControl.addSearcher(localSearch);
searchControl.addSearcher(new google.search.WebSearch());
searchControl.addSearcher(new google.search.VideoSearch());
searchControl.addSearcher(new google.search.BlogSearch());

// Set the Local Search center point
localSearch.setCenterPoint("Leeds, GB");

// Tell the searcher to draw itself and tell it where to attach
searchControl.draw(document.getElementById("searchcontrol"));

// Execute an inital search
searchControl.execute("Google");
}
google.setOnLoadCallback(OnLoad);

//]]>
</script>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body onLoad="arraySet();productsPick();" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<!-- start -->
<table cellpadding="0" cellspacing="0" border="0"><tr><td style="background:url(images/bg.gif) repeat-x top">
<table cellpadding="0" cellspacing="0" border="0" class="w">
<tr>
<td style="width:100%">
<table cellpadding="0" cellspacing="0" border="0" style="width:722px" align="center">
<tr>
<td align="center">
<table cellpadding="0" cellspacing="0" border="0" style="height:454px; width:722px;" class="header">
<tr>
<td align="center">
<table cellpadding="0" cellspacing="0" border="0" style="height:34px ">
<tr>
<td style="width:156px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td nowrap class="vam">Currencies: &nbsp;</td><td style="width:100%"><form name="currencies" action="http://www.barkston-online.co.uk/specials.php" method="get"><select name="currency" onChange="this.form.submit();" class="select"><option value="GBP" SELECTED>GBP United Kingdom</option><option value="&eu">Euro</option></select><input type="hidden" name="osCsid" value="da2f063265cbb0c5724b5eb3c0001fb2"></form></td></tr>
</table>
</td>
<td><img src="images/z.gif" border="0" alt="" width="1" height="62"></td>
<td><img src="images/spacer.gif" border="0" alt="" width="12" height="1"></td>
<td style="width:155px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td nowrap class="vam">Languages: &nbsp;&nbsp;</td><td style="width:100%"><a href="http://www.barkston-online.co.uk/specials.php?language=en&osCsid=da2f063265cbb0c5724b5eb3c0001fb2"><img src="includes/languages/english/images/icon.gif" border="0" alt="English" title=" English " width="24" height="15"></a>&nbsp;</td></tr>
</table>
</td>
<td><img src="images/z.gif" border="0" alt="" width="1" height="62"></td>
<td><img src="images/spacer.gif" border="0" alt="" width="10" height="1"></td>
<td style="width:213px"><form name="search" action="http://www.barkston-online.co.uk/advanced_search_result.php" method="get">

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<strong>Search:</strong> <input type=text name="keywords" class="go" value=""> &nbsp; &nbsp;<input type="image" src="includes/languages/english/images/buttons/button_search_prod.gif" border="0" alt="" class="vam"><br>
</td>
</tr>
</table></form>
</td>
<td><img src="images/spacer.gif" border="0" alt="" width="15" height="1"></td>
<td style="width:44px">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/z1.gif" border="0" alt="" width="30" height="28"></td>
</tr>
</table>
</td>
<td>
<table cellpadding="0" cellspacing="0" border="0" style="width:114px">
<tr>
<td align="left"><b>Shopping Cart:</b><br><a href="http://www.barkston-online.co.uk/shopping_cart.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2">0 items</a><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left"><a href="http://www.barkston-online.co.uk/index.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2"><img src="images/logo.gif" border="0" alt="" width="488" height="104"></a><br><a href="http://www.barkston-online.co.uk/products_new.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2"><img src="images/p.jpg" border="0" alt="" width="494" height="280"></a><br>
</td>
<td><br style="line-height:112px">
<a href="http://www.barkston-online.co.uk/index.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2"><img src="includes/languages/english/images/buttons/m1.gif" border="0" alt="" width="229" height="79"></a><br /><a href="http://www.barkston-online.co.uk/products_new.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2"><img src="includes/languages/english/images/buttons/m2.gif" border="0" alt="" width="229" height="38"></a><br /><a href="http://www.barkston-online.co.uk/specials.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2"><img src="includes/languages/english/images/buttons/m3.gif" border="0" alt="" width="229" height="38"></a><br /><a href="http://www.barkston-online.co.uk/account.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2"><img src="includes/languages/english/images/buttons/m4.gif" border="0" alt="" width="229" height="38"></a><br /><a href="http://www.barkston-online.co.uk/contact_us.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2"><img src="includes/languages/english/images/buttons/m5.gif" border="0" alt="" width="229" height="87"></a></td>
</tr>
</table>
</td>
</tr>
</table>

<!-- end -->
<!-- start -->
</td>
</tr>
<tr>
<td>
<!-- end -->

<!-- header_eof //-->

<!-- body //-->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="col_left">
<!-- left_navigation //-->
<table border="0"cellspacing="0" cellpadding="0" class="box_width_left">
<tr><td width="100%">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td></td></tr>
</table>
</td>
</tr>
</table>
<!-- left_navigation_eof //-->
</td>
<!-- body_text //-->
<td width="100%" class="col_center">


<table cellpadding="0" cellspacing="0" border="0" style="background: #FFFFFF;">
<tr>
<td><img src="images/cont_corn_tl.gif" border="0" alt="" width="20" height="20"></td>
<td style="width:100%" class="cont_body_tall_t"><div align="right"><img src="images/spacer.gif" border="0" alt="" width="1" height="1"><img src="images/cut to size.jpg" alt="cut to size" width="400" height="109"></div></td>
<td><img src="images/cont_corn_tr.gif" border="0" alt="" width="20" height="20"></td>
</tr>
<tr>

<td colspan="3">




<table border="0" width="100%" cellspacing="0" cellpadding="0" class="cont_heading_table">
<tr>
<td width="100%" class="cont_heading_td"><br>
Cut to size calculator</td>
</tr>
</table>


<table cellpadding="0" style="height:250px;" cellspacing="0" border="0" class="heading_top_3">
<tr><td class="padd_33">



<table border="0" width="" cellspacing="0" cellpadding="0" class="box_width_cont product">
<tr>
<td><table border="0" width="" cellspacing="0" cellpadding="0" class="tableBox_output">
</table>
If you require a product cut to size then please fill in the details below and it will calculate a price for you. Then proceed through the payment process to order and purchase your cut to size product.
<p>Please refer to actual product sizes in shopping cart, to make sure you do not exceed the size of the actual product dimensions.<br>
<br>
Thanks you for your custom, come back soon!</p>
<div id="calc" style="visibility:visible; height:120px;">
<form action="calcConf.php" method="post">
<table width="420" border="0">
<tr>
<td width="53" valign="top"><div align="right">Product:</div></td>
<td width="156" valign="top"><select style="margin-top:5px;" name="product" onChange="resetDrop('depth');resetDrop('colour');resetDrop('type');$product = this.value; typePick(this.value);" id="product">
<option value=""></option>
</select></td>
<td width="49" valign="top"><div align="right">Width:</div></td>
<td width="144" valign="top"><input style="margin-top:5px;" type="text" id="Width" onChange="costPick($product, $type, $colour, $depth);" name="Width" /></td>
</tr>
<tr>
<td valign="top"><div align="right">Type:</div></td>
<td valign="top"><select name="type" style="margin-top:5px;" onChange="$type = this.value; colourPick($product, this.value);" id="type">
<option selected="selected" value=""></option>
</select></td>
<td valign="top"><div align="right">Height:</div></td>
<td valign="top"><input type="text" style="margin-top:5px;" name="Height" onChange="costPick($product, $type, $colour, $depth);" id="Height" /></td>
</tr>
<tr>
<td valign="top"><div align="right">Colour:</div></td>
<td valign="top"><select name="colour" style="margin-top:5px;" onChange="$colour = this.value; depthPick($product, $type, this.value);" id="colour">
<option selected="selected" value=""></option>
</select></td>
<td valign="top"><div align="right">Cost: &pound;</div></td>
<td valign="top"><div><input type="hidden" name="cost" id="cost1" /><span id="cost">0.00</span></div></td>
</tr>
<tr>
<td valign="top"><div align="right">Thickness: </div></td>
<td valign="top"><div>
<select name="depth" onChange="$depth = this.value; costPick($product, $type, $colour, this.value);" id="depth">
<option selected="selected" value=""></option>
</select>
mm</div></td>
<td valign="top"><div align="right">PostCode</div></td>
<td valign="top"><input type="hidden" value="LS9 0DX" id="from" /><input name="postCode" type="text" id="to" onChange="javascript:SearchPoints(document.getElementById('from').value, document.getElementById('to').value)" size="10" />
<script type="text/javascript">
var directionsPanel = document.getElementById("my_textual_div");
var mapInfo1=document.getElementById("mapInfo1");
var mapInfo2=document.getElementById("mapInfo2");
</script>
<script src="gmap.js" type="text/javascript"></script>
<span id="****"></span></td>
</tr>
<tr>
<td height="32" valign="top">&nbsp;</td>
<td valign="top"></td>
<td valign="top">&nbsp;</td>
<td valign="top"><span style="text-align:center;">
<div id="mapInfo1"></div>
<input type="submit" disabled="disabled" id="submit" value="Purchase" />
</span></td>
</tr>
</table>
<div id="map" style="visibility:hidden; display:none;"></div>
</form>
</div></td>
</tr>
</table>





<br>
<br>
<br>
</td></tr>
</table>


</td>

</tr>
</table>


</td>
<!-- body_text_eof //-->
<td class="col_right">
<!-- right_navigation //-->
<table border="0"cellspacing="0" cellpadding="0" class="box_width_right">
<tr><td><img src="images/spacer.gif" border="0" alt="" width="5" height="1"></td>
<td width="100%">
<table border="0" cellspacing="0" cellpadding="0">
<!-- categories //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="box_heading_table">
<tr>
<td><img src="images/line1.gif" border="0" alt="" width="224" height="22"></td>
</tr>
<tr>
<td class="box_heading_td">Categories</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0" style="margin-bottom:3px;" class="box_body_table">
<tr>
<td class="box_body box_body_tall_b box_body_td"><ul>
<li class="bg_list"><a href=http://www.barkston-online.co.uk/index.php?cPath=95&osCsid=da2f063265cbb0c5724b5eb3c0001fb2>Plastic Products</a></li>
<li class="bg_list"><a href=http://www.barkston-online.co.uk/index.php?cPath=24&osCsid=da2f063265cbb0c5724b5eb3c0001fb2>Adhesives for Plastic</a></li>
<li class="bg_list"><a href=http://www.barkston-online.co.uk/index.php?cPath=62&osCsid=da2f063265cbb0c5724b5eb3c0001fb2>Design</a></li>
<li class="bg_list"><a href=http://www.barkston-online.co.uk/index.php?cPath=65&osCsid=da2f063265cbb0c5724b5eb3c0001fb2>DIY</a></li>
<li class="bg_list"><a href=http://www.barkston-online.co.uk/index.php?cPath=66&osCsid=da2f063265cbb0c5724b5eb3c0001fb2>Glazing</a></li>
<li class="bg_list"><a href=http://www.barkston-online.co.uk/index.php?cPath=63&osCsid=da2f063265cbb0c5724b5eb3c0001fb2>Panelling</a></li>
<li class="bg_list"><a href=http://www.barkston-online.co.uk/index.php?cPath=61&osCsid=da2f063265cbb0c5724b5eb3c0001fb2>Signage</a></li>
<li class="bg_list"><a href=http://www.barkston-online.co.uk/index.php?cPath=64&osCsid=da2f063265cbb0c5724b5eb3c0001fb2>Thermo Forming</a></li>
<li class="bg_list"><a href=http://www.barkston-online.co.uk/index.php?cPath=68&osCsid=da2f063265cbb0c5724b5eb3c0001fb2>Forthcoming Products</a></li></ul></td>
</tr>
<tr>
<td><img src="images/line2.gif" border="0" alt="" width="224" height="22"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- categories_eof //-->
</table>
</td>
</tr>
</table>

<!-- right_navigation_eof //-->
</td>
</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
</td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" style="height:90px; background: url(images/bot.gif) no-repeat top left" class="footer">
<tr>
<td><br style="line-height:40px"><img src="images/p1.gif" border="0" alt="" width="162" height="26"></td>
<td style="width:100%" align="right">
<br style="line-height:35px"><span><a href="http://www.barkston-online.co.uk/specials.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2">Specials</a></span> &nbsp; &nbsp; <span>|</span> &nbsp; &nbsp;<span><a href="http://www.barkston-online.co.uk/advanced_search.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2">Advanced Search</a></span> &nbsp; &nbsp; <span>|</span> &nbsp; &nbsp;<span><a href="http://www.barkston-online.co.uk/reviews.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2">Reviews</a></span> &nbsp; &nbsp; <span>|</span> &nbsp; &nbsp;<span><a href="http://www.barkston-online.co.uk/create_account.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2">Create an Account</a></span> &nbsp; &nbsp; <span>|</span> &nbsp; &nbsp;<span><a href="http://www.barkston-online.co.uk/login.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2">Log In</a></span><br>
<br style="line-height:5px"> <a href="http://www.barkston-online.co.uk/index.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2">Barkston Online</a> &nbsp;&copy; 2008 <b><a href="http://www.barkston-online.co.uk/conditions.php?osCsid=da2f063265cbb0c5724b5eb3c0001fb2">Conditions of Use</a></b><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center"></td>
</tr>
</table>
</td></tr></table><!-- footer_eof //--></body>
</html>

barkermn01
01-23-2009, 09:01 AM
bump*

Can some one help please.

Buy what i have read brandonH is wrong

This error is created when using innerHTML and putting none HTML Strict data in like a form in side a form or and <li> without <ul>
so why is my script erroring when all im trying to do is put a little number into a div???

and its all bull
Ok i just did this


/*function costPick($name, $type, $colour, $depth){
$return = $data[$name][$type][$colour][$depth];
var width = document.getElementById("Width").value; // variable and id names must be unique var is important
var height = document.getElementById("Height").value;
$maxW = $data[$name][$type][$colour][$depth][0];
$maxH = $data[$name][$type][$colour][$depth][1];
$fullP = $data[$name][$type][$colour][$depth][2];
$mm3 = ((width * height) * $depth) / 1000;
$1 = (($maxW * $maxH) * $depth) / 1000;
$2 = $fullP / $1;
$3 = ($mm3 * $2) * 1.6;
$cost = currency($3, 2);
document.getElementById("costSpan").innerHTML = $cost.toString();
document.getElementById("cost1").value = $cost;
return $return;
}*/
function costPick($name, $type, $colour, $depth){
alert('ERROR');
}


And i still get an THE error WTF

barkermn01
01-23-2009, 03:17 PM
In case you need this information,

IE cache is the problem.

i think my cache broke on IE and after wiping all my cache closing IE and then Restarting my PC it worked.

2 Reasons one topic why not to use IE



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum