Google Maps API code has problems in IE , it loads fine in firefox but generates error in IE of “Operation Aborted”. Googling around I found this fix listed here
http://www.ryangrant.net/archives/internet-explorer-cannot-open-the-internet-site-operation-aborted-google-map-api
Filed under: Technology



they have asked to add it to head. i can’t add it as it is dynamically generated.
was looking for solution
This solution will work for ALL browsers and requires very little effort. I modeled it after this website…
http://simonwillison.net/2004/May/26/addLoadEvent/
Put this entire script inside of your tags.
The reason why this works is it loads the google map information last (even after the body onload event). This works for all browsers. To view a working example of this visit http://www.sitelinksearch.com and click on a state.
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != ‘function’) {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
//Setup the map
addLoadEvent(function() {
load();
showAddress(“raleigh, nc”);
})
how do you add this to the code.. or better yet.. how do i add this to my code.. and where.. could you provide more of an example?
thanks
Our app – Google maps in IE 6 – the customer’s idea not ours – started to receive the Operation Aborted message on a regular basis after going live. We also started to experience it in testing around the same time. The application had been running for several weeks , why would it start to get this error? A change by Google to the Maps API JavaScript? Any suggestions welcome.