I can't find where you actually call the initialize() Javascript function.
However, even when it is called (I did that manually), your values are
strings, not numbers and you need to parseFloat() them.
var latitude = parseFloat(document.getElementById('ctl00_ContentPlaceHolder1_lblLatitude').value);
var longitude = parseFloat(document.getElementById('ctl00_ContentPlaceHolder1_lblLongitude').value);
var latlng = new google.maps.LatLng(latitude, longitude);
Doesn't seem to work, coordinates are still correct underneath the google map.
http://www.huarencommunity.com/chinacity/city2.aspx?cityid=6
Thanks!
It's definitely definitely not best practice. Some browsers use the
first and ignore the second; others will use the second and might or
might not do anything with markup occurring before that. The results
are undefined. Look into using window.onload to set the onload action.