View Single Post
  #1 (permalink)  
Old March 25th, 2011, 02:53 AM
phuchoang2583 phuchoang2583 is offline
Authorized User
 
Join Date: Oct 2010
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default Map do not show on Chrome

Hello everybody

When using Google Chrome I get the "Google Chrome" alert, which occurs after the init function is called, but I never get the f1() function.
If you have any further ideal, please help me

Thanks in advance

function loadXML() {
bounds = new GLatLngBounds();
markerList = [];
map.clearOverlays();
var error = "";
var file = "hotels/MapData.aspx";

try //Internet Explorer
{
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = false;
xmlDoc.load(file);
f1();
}
catch (e)
{
try //Firefox, Mozilla, Opera, etc.
{
xmlDoc = document.implementation.createDocument("", "", null);
xmlDoc.async = false;
xmlDoc.load(file);
f1();
}
catch (e)
{
try //Google Chrome
{
alert("Google Chrome");
var xmlhttp = new window.XMLHttpRequest();
xmlhttp.open("GET", file, false);
xmlhttp.send(null);
xmlDoc.load(file);
xmlDoc = xmlhttp.responseXML.documentElement;
f1();

}
catch (e)
{
error = e.message;
}
}
}


}