Hi: I used the space tag with the textboxes but when i use the table it gives syntax error. Can any one please tell me how to i use the table around the textboxes?
Thanks.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example</title>
<script src="
http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAWjFPi89UG-Rb3Who5FDkhRTvPROrRtr9Yene2irq6Hi48Jt9RRRSOu-klp9Mhib3eBbvZWu0LxSZjQ"
type="text/javascript"></s
cript>
<script type="text/javascript">
//<![CDATA[
var map;
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementB
yId("map")
);
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
//]]>
function buttonOnClick()
{
var fromaddress ;
var myaddress;
var query;
// build the callers address string
fromaddress = document.getElementById("y
ouraddress
").value + ',' +
document.getElementById("y
ourcity").
value +',' +
document.getElementById("y
ourstate")
.value +',' +
document.getElementById("y
ourazip").
value ;
myaddress = '65 HONEYSUCKLE RD, Dothan, AL 36312';
query = fromaddress + " to " + myaddress;
document.getElementById("q
uery").inn
erHTML = query;
var dirPanel = document.getElementById("d
irections1
")
directions = new GDirections(map, dirPanel ); // make a direction thing
directions.load(query); // make the route
}
</script>
<body onload='load();' onunload="GUnload()">
<BR>
<center><font face="Arial" size="4" color="green">SPECIALIZING
IN PEDIATRIC AND ADULT NEUROLOGY</font></center>
<BR><BR>
Your Address:   <in
put type='text' id='youraddress'>
<br>
Your City:    &
nbsp &
nbsp &
nbsp <
input type='text' id='yourcity'>
<br>
Your State:    
  
  
 <inpu
t type='text' size='2' id='yourstate'>
<br>
Your Zip Code:  <input type='text' size='5' id='yourazip'>
<br>
<input type='button' value='Display Route' onclick='buttonOnClick();'
>
<br>
<center><a href="index.html">Back to Home Page</a></center>
<br>
<center>
<div id="map" style="width: 500px; height: 300px" ></div>
<div id="query" > </div>
</center>
<div id="directions1" style="width: 500px; height: 300px" ></div>
</body>
</html>
Start Free Trial