Hi! Is it possible to refresh only a <script> and not all the page?!
i have a <script> that displays google maps... and i show it on my page with other material..
i just wanted to refresh that script (google maps display), and not all the page...
i did it a refresh.. but it makes of all page..
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=x"
type="text/javascript"></script>
<script type="text/javascript">
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(<? echo "$x,$y"; ?>), <?=$zoom?>);
map.addControl(new GSmallMapControl());
var point = new GPoint (<? echo "$y,$x"; ?>);
var marker = new GMarker(point);
map.addOverlay(marker);
map.setUIToDefault();
}
}
</script>
<meta http-equiv="refresh" content="10" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style><body onLoad="load()" onUnload="GUnload()">