1) Script Title:
Ajax Tabs Content
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...tent/index.htm
3) Describe problem:
Hi All,
I am new to AJAX so please help me out here. I am using DD Ajaxtab in above link and trying to add an external page on one of the page which contains google map using google API. Code of that external page is displayed below. How can I make it work. All other tab content works fine except this one.Please Help and THANKS in advance.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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=[mykey which I have removed];
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
//take last ll attributes from link to this page url of the map
var map = new GMap2(document.getElementById("map").href="greenacres_maps.html");
map.setCenter(new GLatLng(40.268791,-74.876836), 14);
map.addOverlay(new GMarker(new GLatLng(40.268791,-74.876836)));
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<table width=500 border="1">
<tr><td width="500">
<div id="map" style="width: 500px; height: 300px"></div>
</table>
</body>
</html>



Please Help and THANKS in advance.
Reply With Quote

Bookmarks