The vision is to eventually utilize AJAX to dynamically update the map coordinates at ten second intervals, thus updating the map for web page visitors as soon as location updates become available. However, I can't even consider the time intervals part until I work this out!
P.S. Non-JS solutions (ex: server side includes) are not options.
Here's the code--
Note the following:
(A) The coords.txt file referenced below is very short and literally reads: "36.098985, -115.170500". That's it.
(B) I need the areas that contain XXXXXX to have the contents of coords.txt inserted there.
(C) The XXXXXX areas literally need a string that's formatted exactly like the contents of the coords.txt file.
(D) When I insert "36.098985, -115.170500" within the parentheses (without quotes), up comes a perfect map of Vegas (intentional).
Please help! I'm about to go nuts!!!
[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
// code for IE7+, Firefox, Chrome, Opera, Safari
else if (window.ActiveXObject)
// code for IE6, IE5
alert("Problem! Your browser does not support XMLHTTP or AJAX!");
//BING Maps Start Here
var map = null;
var SpaceNeedle = new VELatLong(XXXXXXX);
var pinLocation = new VELatLong(XXXXXXX);
map = new VEMap('myMap');
// Let me know if a birdseye scene is available
var TopOfNeedle = new VELatLong(XXXXXXX);