hums
asked on
JavaScript Function only work in IE8 not Chrome, Firefox or Safari.
The JavaScript functions ( onload="initialize()" and onsubmit="showAddress(this .address.v alue); return false">) are only working with IE8 and not the other browsers. Does any know why this is happening ?
<!-- <script src="http://maps.google.com/maps?file=api&v=3.2&"
type="text/javascript"></script>-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Copyright 2010,2011 Interactive Digital Devices Inc. All rights reserved.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta name="description" content="Address finder with area map and street map." />
<title>IDD Tech Maps </title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"> </script>
<script type="text/javascript" src="JScriptMaps.js"> </script>
</head>
<body onload="initialize()" >
<form action="#" onsubmit="showAddress(this.address.value); return false">
<div id="topcontainer" style="width:80%; " align="center">
<p>
Enter an address (as complete as possible) and click Go. <input type="text" style="width:350px" name="address" value="" /> <input type="submit" value="Go!" />
<!-- <input type="text" style="width:350px" name="address" placeholder="Type in Address" /> Not supported by IE 8-->
<br/>
A local area map and detailed location map will be displayed. Future enhancements will include displaying local businesses.
</p>
</div>
<div id="container"
style="width:100%;overflow:hidden; height:90%; " >
<div id="map_canvas"
style="border-style: dashed; border-width: thin; padding: 5px; margin: 5px; float:left; width: 400px; height: 440px; "></div>
<div id="map_canvas1"
style="border-style: dashed; border-width: thin; padding: 5px; margin: 5px; float:left; width: 400px; height: 440px; "></div>
<div id="adContainer" >
<script type="text/javascript">
google_ad_client = "pub-1234567890123456";
/* 160x600, created 10/13/10 */
google_ad_slot = "7735684842";
google_ad_width = 160;
google_ad_height = 600;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>
</form>
<p>
Copyright © IDD,Inc. 2010,2011 All rights reserved.
</p>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER