refresh part of the page
Posted: Thu Feb 19, 2009 2:06 am
I have a PHP script loads a Google Map, and above the Google Map, I
have a HTML text input field and reload button.
Once user click on reload button, the Google Map will refresh with new
values entered from input field.
How can I refresh only the Google Map part once I click reload button?
the GUI is like this
http://www.oniva.com/upload/1356/ss.jpg
have a HTML text input field and reload button.
Once user click on reload button, the Google Map will refresh with new
values entered from input field.
How can I refresh only the Google Map part once I click reload button?
Code: Select all
<?php
function plotGmapMarkers ()
{
$pcd = $_REQUEST['address'];
$vid= $_REQUEST['vid'];
$parent = $_REQUEST['parent'];
// some text field to input different value and refresh the Google map
// Do some MYSQL query and build the $mymap data
/* Displays the map */
echo "<div>";
echo theme('gmap', array('#settings' => $mymap));
echo "</div>";
}
plotGmapMarkers();
?>http://www.oniva.com/upload/1356/ss.jpg