Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error reported by IE 8 1

Status
Not open for further replies.

janeybad

IS-IT--Management
Sep 28, 2008
26
GB
PLEASE HELP!

This is the error details, which I am getting.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Wed, 25 Aug 2010 15:10:00 UTC


Message: 'document.addressForm' is null or not an object
Line: 116
Char: 2
Code: 0
URI: /prop_information.php?id=449


Here is the code:

Code:
<?php require_once('conn.php'); ?>
<?php 

$sqp="select * from data_tb where dbid='".$_REQUEST['id']."'";
$resp=mysql_query($sqp);
if(!$resp)
{
die('error in data');
}
$rwp=mysql_fetch_array($resp);
$disaddress = $rwp['DISPLAY_ADDRESS'];
$postcode1 = $rwp['POSTCODE1'];
$postcode2 = $rwp['POSTCODE2'];
$address = $disaddress .','. $postcode1 .','. $postcode2;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Adams Letting Agents | Homepage</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url();
}
.hdt_text {
	color: #FFF;
}
.hdt_text {
	font-size: 14px;
}
.hdt_text {
	font-size: 24px;
}
.ita {
	font-style: italic;
}
.ari {
	font-family: Arial, Helvetica, sans-serif;
	color: #6C1035;
	font-size: 12px;
	font-weight: bold;
}
.new_hea {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 20px;
	color: #6C1035;
}
.pag {
	font-family: Arial, Helvetica, sans-serif;
}
.pag {
	font-size: 12px;
}
.pbl {
	font-family: Arial, Helvetica, sans-serif;
	color: #000;
	font-size: 12px;
}
.pag .pag {
	color: #666;
}
.pag1 {	font-family: Arial, Helvetica, sans-serif;
}
.pag1 {	font-size: 12px;
	color: #666;
}
a:link {
	color: #6C1035;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #C89094;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.hdt_text1 {	color: #FFF;
}
.hdt_text1 {	font-size: 16px;
}
.hdt_text1 {	font-size: 24px;
	font-family: &quot;Trebuchet MS&quot;, Arial, Helvetica, sans-serif;
}
.ari1 {	font-family: Arial, Helvetica, sans-serif;
	color: #6C1035;
	font-size: 14px;
	font-weight: bold;
}
-->
</style>
<script type="text/javascript" src="[URL unfurl="true"]http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABQIAAAAKhe6Tr31lu_KjnR1slWcIBRNjYwVGhjJmR7rB-fGidrT762auBQdZs7ZxzQdBlNKYC3r9mzNTdBPkw"></script>[/URL]
<script type="text/javascript">

    var map = null;
    var geocoder = null;

    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        geocoder = new GClientGeocoder();
      }
    }

    function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          }
        );
      }
     }
	document.addressForm.submit();
    </script>
<script type="text/javascript">
function bigimg(value)
{
	document.getElementById("plswt").innerHTML="Please Wait...";
	document.getElementById("item_img").src=value;
	document.getElementById("plswt").style.display="none";
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
</script>
</head>
<body onload="initialize(); showAddress(document.addressForm.address.value)" onunload="GUnload()">
<form action="#" name="addressForm" document.forms="[0]" >
<input type="hidden" name="address" value="<?php echo $address; ?>" />
</form>
<table width="99%" height="1028" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10%" height="92" align="center" bgcolor="#6c1035">&nbsp;</td>
    <td width="57%" nowrap="nowrap" bgcolor="#6c1035"><img src="pics/test_nav.jpg" width="238" height="65" /></td>
    <td width="28%" align="center" bgcolor="#6C1035" class="hdt_text"><span class="hdt_text1">Call us <span class="ita">now</span> on 01202 520600</span></td>
    <td width="5%" bgcolor="#6c1035">&nbsp;</td>
  </tr>
  <tr>
    <td height="19" bgcolor="#ede7e7">&nbsp;</td>
    <td nowrap="nowrap" bgcolor="#ede7e7" class="ari"><a href="index.php">HOME</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="landlords.php">LANDLORDS</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="tenants.php">TENANTS</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="students.php">STUDENTS</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="properties.php">PROPERTIES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="about.php">ABOUT US</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="contact_us.php">CONTACT US</a></td>
    <td align="center" bgcolor="#ede7e7" class="pbl"><u>LOGIN</u></td>
    <td bgcolor="#ede7e7">&nbsp;</td>
  </tr>
  <tr>
    <td height="19" bgcolor="#c89094">&nbsp;</td>
    <td nowrap="nowrap" bgcolor="#c89094">&nbsp;</td>
    <td bgcolor="#c89094">&nbsp;</td>
    <td bgcolor="#c89094">&nbsp;</td>
  </tr>
  <tr>
    <td height="23">&nbsp;</td>
    <div>
    <td class="pag"><p><span class="new_hea">Property Details</span></p></td></div>
    <td rowspan="3" valign="top"><table width="430" height="573" border="0">
      <tr>
        <td width="83" height="60">&nbsp;</td>
        <td width="337" class="ari">Resources for properties</td>
      </tr>
      <tr>
        <td height="28">&nbsp;</td>
        <td class="pag1">Flats in Bournemouth<br /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Flats in Poole</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Houses in Bournemouth</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Houses in Poole</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Student Accommodation</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Studios</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Rooms in Shared Accommodation</td>
      </tr>
      <tr>
        <td height="213">&nbsp;</td>
        <td class="pag1"><img src="pics/valuation.jpg" width="232" height="211" border="0" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">&nbsp;</td>
      </tr>
    </table></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="318">&nbsp;</td>
    <td valign="top"><table width="100%" height="318" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="42%" height="318" align="left" valign="top"><table width="250" border="0" cellspacing="0" cellpadding="0">
      <tr>
      <?php if ($rwp['MEDIA_IMAGE_00'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_00'];?>" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;"/></td>
        <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_01'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_01'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_02'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_02'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
      </tr>
      <tr>
      <td height="2" colspan="4"></td>
      </tr>
      <tr>
      <?php if ($rwp['MEDIA_IMAGE_03'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_03'];?>" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_04'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_04'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_05'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_05'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
      </tr>
      <tr>
      <td height="2" colspan="4"></td>
      </tr>
      <tr>
      <?php if ($rwp['MEDIA_IMAGE_06'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_06'];?>" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_07'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_07'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_08'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_08'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
      </tr>
      <tr>
      <td height="2" colspan="4"></td>
      </tr>
      <tr>
      <?php if ($rwp['MEDIA_IMAGE_60'] != ""){ ?>
        <td height="78" align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_60'];?>" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_TEXT_60'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_TEXT_60'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
    </table></td>
    <td width="58%" align="left" valign="top"><div id="plswt"></div>
      <img src="images/<?php echo $rwp['MEDIA_IMAGE_00'];?>" width="386" height="318" align="right" id="item_img" /></td>
  </tr>
</table>
</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="557">&nbsp;</td>
    <td valign="top"><table width="100%" height="447" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top"><table width="100%" height="350" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="88" colspan="2" valign="top"><strong class="pag1"><span class="ari"><span class="ari1">£<?php echo $rwp['PRICE'];?> pcm</span></span></strong><br />
              <span class="ari1"><?php echo $rwp['DISPLAY_ADDRESS'];?><br />
                </span><span class="ari"><u><br />
                  </u></span><span class="ari"><u>OVERVIEW</u></span><span class="pag1"><u><br />
                  <br />
                  </u><?php echo $rwp['DESCRIPTION'];?></span></td>
          </tr>
          <tr>
            <td width="201" height="196" valign="top"><p class="ari"><u>KEY FEATURES:<br />
              <br />
            </u><?php echo $rwp['FEATURE1'];?><br />
              </p>
              <p class="ari"><?php echo $rwp['FEATURE2'];?><br />
              </p>
              <p class="ari"><?php echo $rwp['FEATURE3'];?><br />
              </p>
              <p class="ari"><?php echo $rwp['FEATURE4'];?><br />
              </p>
              <p class="ari"><?php echo $rwp['FEATURE5'];?><br />
              </p></td>
            <td width="156" valign="top"><p class="ari"><br />
              <br />
              <?php echo $rwp['FEATURE6'];?><br />
              </p>
              <p class="ari"><?php echo $rwp['FEATURE7'];?><br />
              </p>
              <p class="ari"><?php echo $rwp['FEATURE8'];?></p>
              <p class="ari"><?php echo $rwp['FEATURE9'];?><br />
              </p>
              <p class="ari"><?php echo $rwp['FEATURE10'];?><br />
              </p></td><td width="13"></div>
          </tr>
          <tr>
            <td height="47" valign="top"><span class="ari1"></a></span><span class="ari1"><a href="testing_new.php?id=<?php echo $rwp['dbid'];?>"><img src="images/arrange_viewing.jpg" width="139" height="30" border="0" /></a><a href="#" onclick="history.go(-1);return false;"><img src="images/back_return.jpg" width="75" height="30" border="0" /></a><a href="javascript:;"><br />
            </a></span></td>
            <td valign="top"><a href="#" onclick="history.go(-1);return false;"></a><a href="javascript:;"><img src="images/print_version.jpg" width="75" height="30" border="0" onclick="MM_openBrWindow('print_pages.php?id=<?php echo $rwp['dbid'];?>','PrintFriendly','scrollbars=yes,width=615,height=885')" /></a></td>
          </tr>
        </table>          <p>&nbsp;</p></td>
        <td width="342" valign="top"><br />          <table width="200" border="0" align="right">
          <tr>
            <td><div id="map_canvas" style="width: 320px; height: 352px"></div></td>
          </tr>
        </table></td>
      </tr>
    </table>      <p>&nbsp;</p></td>
    <td>&nbsp;</td>
  </tr>
</table>

<map name="Map" id="Map">
  <area shape="rect" coords="7,6,231,156" href="hometest/prop_information.php" />
</map>
</body>
</html>

If you can help in anyway I will be so happy.

Kind Regards

JaneyBad xxxx
 
First:

Server side code is of no use to use. Please post just the HTML generated after the page has been called. That way we can actually run it without needing your server side resources such as DB's and a specific server side language.

Second:

Which one is line 116 after the PHP has been p[arsed and only the resulting HMTL is received, as that's the way that is counted?

Third:

Seems to me you are trying to use the form before its actually completed loading, so its not available yet.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Hope this sheds some light on the problem and thank you in advance for any help.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Adams Letting Agents | Homepage</title>
<style type="text/css"> 
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url();
}
.hdt_text {
	color: #FFF;
}
.hdt_text {
	font-size: 14px;
}
.hdt_text {
	font-size: 24px;
}
.ita {
	font-style: italic;
}
.ari {
	font-family: Arial, Helvetica, sans-serif;
	color: #6C1035;
	font-size: 12px;
	font-weight: bold;
}
.new_hea {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 20px;
	color: #6C1035;
}
.pag {
	font-family: Arial, Helvetica, sans-serif;
}
.pag {
	font-size: 12px;
}
.pbl {
	font-family: Arial, Helvetica, sans-serif;
	color: #000;
	font-size: 12px;
}
.pag .pag {
	color: #666;
}
.pag1 {	font-family: Arial, Helvetica, sans-serif;
}
.pag1 {	font-size: 12px;
	color: #666;
}
a:link {
	color: #6C1035;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #C89094;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.hdt_text1 {	color: #FFF;
}
.hdt_text1 {	font-size: 16px;
}
.hdt_text1 {	font-size: 24px;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
.ari1 {	font-family: Arial, Helvetica, sans-serif;
	color: #6C1035;
	font-size: 14px;
	font-weight: bold;
}
-->
</style>
<script type="text/javascript" src="[URL unfurl="true"]http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABQIAAAAKhe6Tr31lu_KjnR1slWcIBRNjYwVGhjJmR7rB-fGidrT762auBQdZs7ZxzQdBlNKYC3r9mzNTdBPkw"></script>[/URL]
<script type="text/javascript">
 
    var map = null;
    var geocoder = null;
 
    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        geocoder = new GClientGeocoder();
      }
    }
 
    function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          }
        );
      }
     }
	document.addressForm.submit();
    </script>
<script type="text/javascript"> 
function bigimg(value)
{
	document.getElementById("plswt").innerHTML="Please Wait...";
	document.getElementById("item_img").src=value;
	document.getElementById("plswt").style.display="none";
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
</script>
</head>
<body onload="initialize(); showAddress(document.addressForm.address.value)" onunload="GUnload()">
<form action="#" name="addressForm" >
<input type="hidden" name="address" value="Cardigan Road, Winton,Bh9,1bj" />
</form>
<table width="99%" height="1028" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10%" height="92" align="center" bgcolor="#6c1035">&nbsp;</td>
    <td width="57%" nowrap="nowrap" bgcolor="#6c1035"><img src="pics/test_nav.jpg" width="238" height="65" /></td>
    <td width="28%" align="center" bgcolor="#6C1035" class="hdt_text"><span class="hdt_text1">Call us <span class="ita">now</span> on 01202 520600</span></td>
    <td width="5%" bgcolor="#6c1035">&nbsp;</td>
  </tr>
  <tr>
    <td height="19" bgcolor="#ede7e7">&nbsp;</td>
    <td nowrap="nowrap" bgcolor="#ede7e7" class="ari"><a href="index.php">HOME</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="landlords.php">LANDLORDS</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="tenants.php">TENANTS</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="students.php">STUDENTS</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="properties.php">PROPERTIES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="about.php">ABOUT US</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="contact_us.php">CONTACT US</a></td>
    <td align="center" bgcolor="#ede7e7" class="pbl"><u>LOGIN</u></td>
    <td bgcolor="#ede7e7">&nbsp;</td>
  </tr>
  <tr>
    <td height="19" bgcolor="#c89094">&nbsp;</td>
    <td nowrap="nowrap" bgcolor="#c89094">&nbsp;</td>
    <td bgcolor="#c89094">&nbsp;</td>
    <td bgcolor="#c89094">&nbsp;</td>
  </tr>
  <tr>
    <td height="23">&nbsp;</td>
    <div>
    <td class="pag"><p><span class="new_hea">Property Details</span></p></td></div>
    <td rowspan="3" valign="top"><table width="430" height="573" border="0">
      <tr>
        <td width="83" height="60">&nbsp;</td>
        <td width="337" class="ari">Resources for properties</td>
      </tr>
      <tr>
        <td height="28">&nbsp;</td>
        <td class="pag1">Flats in Bournemouth<br /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Flats in Poole</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Houses in Bournemouth</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Houses in Poole</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Student Accommodation</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Studios</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">Rooms in Shared Accommodation</td>
      </tr>
      <tr>
        <td height="213">&nbsp;</td>
        <td class="pag1"><img src="pics/valuation.jpg" width="232" height="211" border="0" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="pag1">&nbsp;</td>
      </tr>
    </table></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="318">&nbsp;</td>
    <td valign="top"><table width="100%" height="318" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="42%" height="318" align="left" valign="top"><table width="250" border="0" cellspacing="0" cellpadding="0">
      <tr>
              <td align="left" valign="top"><img src="images/58222_PP34_IMG_00.JPG" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;"/></td>
                        <td align="left" valign="top"><img src="images/58222_PP34_IMG_01.JPG" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
                         <td align="left" valign="top"><img src="images/58222_PP34_IMG_02.jpg" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
               </tr>
      <tr>
      <td height="2" colspan="4"></td>
      </tr>
      <tr>
              <td align="left" valign="top"><img src="images/58222_PP34_IMG_03.jpg" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
                               </tr>
      <tr>
      <td height="2" colspan="4"></td>
      </tr>
      <tr>
                            </tr>
      <tr>
      <td height="2" colspan="4"></td>
      </tr>
      <tr>
                      <td align="left" valign="top">&nbsp;</td>
      </tr>
    </table></td>
    <td width="58%" align="left" valign="top"><div id="plswt"></div>
      <img src="images/58222_PP34_IMG_00.JPG" width="386" height="318" align="right" id="item_img" /></td>
  </tr>
</table>
</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="557">&nbsp;</td>
    <td valign="top"><table width="100%" height="447" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top"><table width="100%" height="350" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="88" colspan="2" valign="top"><strong class="pag1"><span class="ari"><span class="ari1">£325 pcm</span></span></strong><br />
              <span class="ari1">Cardigan Road, Winton<br />
                </span><span class="ari"><u><br />
                  </u></span><span class="ari"><u>OVERVIEW</u></span><span class="pag1"><u><br />
                  <br />
                  </u>** LET - SUBJECT TO REFERENCES ** Two rooms to let in a brand new fully furnished four double bedroom flat, set right in the heart of Winton.  The flat has an open plan kitchen lounge diner, two bathrooms and is ideal for student lettings. They will be completed by September </span></td>
          </tr>
          <tr>
            <td width="201" height="196" valign="top"><p class="ari"><u>KEY FEATURES:<br />
              <br />
            </u>4 BED FLAT<br />
              </p>
              <p class="ari">FURNISHED<br />
              </p>
              <p class="ari">BRAND NEW<br />
              </p>
              <p class="ari">SUIT STUDENTS<br />
              </p>
              <p class="ari">GREAT LOCATION<br />
              </p></td>
            <td width="156" valign="top"><p class="ari"><br />
              <br />
              NEAR TO UNI<br />
              </p>
              <p class="ari">DOUBLE ROOMS<br />
              </p>
              <p class="ari">TWO BATHROOMS</p>
              <p class="ari">KIT/LGE/DNR<br />
              </p>
              <p class="ari">AVAILABLE SEPTEMBER<br />
              </p></td><td width="13"></div>
          </tr>
          <tr>
            <td height="47" valign="top"><span class="ari1"></a></span><span class="ari1"><a href="testing_new.php?id=460"><img src="images/arrange_viewing.jpg" width="139" height="30" border="0" /></a><a href="#" onclick="history.go(-1);return false;"><img src="images/back_return.jpg" width="75" height="30" border="0" /></a><a href="javascript:;"><br />
            </a></span></td>
            <td valign="top"><a href="#" onclick="history.go(-1);return false;"></a><a href="javascript:;"><img src="images/print_version.jpg" width="75" height="30" border="0" onclick="MM_openBrWindow('print_pages.php?id=460','PrintFriendly','scrollbars=yes,width=720,height=885')" /></a></td>
          </tr>
        </table>          <p>&nbsp;</p></td>
        <td width="342" valign="top"><br />          <table width="200" border="0" align="right">
          <tr>
            <td><div id="map_canvas" style="width: 320px; height: 352px"></div></td>
          </tr>
        </table></td>
      </tr>
    </table>      <p>&nbsp;</p></td>
    <td>&nbsp;</td>
  </tr>
</table>
 
<map name="Map" id="Map">
  <area shape="rect" coords="7,6,231,156" href="hometest/prop_information.php" />
</map>
</body>
</html>
 
LINE 116 document.addressForm.submit();


Kind Regards

JaneyBad xxx
 
Move your document.addressForm.submit() statement into the showAddress() function. Like this:

Code:
function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          }
        );
      }
	[COLOR=red]  document.addressForm.submit();
     }[/color]

That should solve your problem...hopefully :)

Nitin
 
Sorry it took me so long to come back. Yes snitin is correct.
Your call to document.addressForm.submit() is being run as soon as the page loads the script section, which happens before the form is loaded, and os is not yet available to be referenced.

Moving it inside the function should remove the error, however, it will also submit the form every time the function is called. Not sure if that is what you want.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top