Then you could do something like so:
Code:
<script type="text/javascript">
function openmypage(lat, longi){
if(lat && longi)
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "windowfiles/result.php?plat=" + lat + "&plong=" + longi, "Location", "width=450px,height=300px,left=300px,top=100px,resize=1,scrolling=1")
else
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "windowfiles/result.php", "Location", "width=450px,height=300px,left=300px,top=100px,resize=1,scrolling=1")
ajaxwin.onclose=function(){return window}
}
</script>
<td><?php printf("%03d.",$number++); ?> </td>
<?php /* Print S.Number */ ?>
<td><?php printf("%s%s-%s%s-%s%s",$DataArray[1][0],$DataArray[1][1],$DataArray[1][2],$DataArray[1][3],$DataArray[1][4],$DataArray[1][5]); ?></td>
<?php /*Print Date */ ?>
<td><?php printf("%s%s:%s%s:%s%s",$DataArray[0][0],$DataArray[0][1],$DataArray[0][2],$DataArray[0][3],$DataArray[0][4],$DataArray[0][5]); ?></td>
<?php /*Print Time */ ?>
<td><?php printf("%s",$DataArray[4]); ?></td>
<?php /*Print Speed */ ?>
<td><?php printf("%3.1f",$DataArray[5]); ?></td>
<?php /*Print Distance */ ?>
<?php session_start();
$_SESSION["lat"] = $DataArray[2];
$_SESSION["long"] = $DataArray[3];
?>
<td><b><a href="#" onClick="openmypage('<?php echo $_SESSION["lat"]; ?>', '<?php echo $_SESSION["long"]; ?>'); return false"><?php printf("%s",$DataArray[6]); ?></a></b></td>
<?php /*Print Location */ ?>
</tr>
If the method for opening (request.open()) is GET in the main AJAX routine, and perhaps even if it is POST, the queries should then be available on the result.php page as:
and:
respectively.
Bookmarks