Quote:
function LoadMap()
{
<?php include 'latlongmap.php';?>
SetMap(fetchedlatlong);
}
That code will render the output of the
latlongmap.php
file
ONCE, when the page is first requested. That output will not change until you reload the page.
If you want to load data from the server without reloading the page, then you need to make an AJAX request.
Getting Started - Developer guides | MDN[
^]
fetch documentation[
^]