I'm trying to pick up some variables from a url querystring and pass them into my google map:
on my map page I can pick up the variables fine using asp:
xlat = trim(Request.QueryString("xlat"))
xlong = trim(Request.QueryString("xlong"))
but can't get these variables into my javascript section:
var xlat = "<%=request.QueryString("xlat")%>";
var xlong = "<%=request.QueryString("xlong")%>";
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(xlat,xlong), 13);
var point = new GLatLng(xlat,xlong);
map.addOverlay(new GMarker(point, icon));
}
}
Any ideas?