开发者

Google Map problem on IE8

开发者 https://www.devze.com 2023-02-12 04:23 出处:网络
I have a strange problem witch google map on IE. I\'m trying to load google map using this code: $(document).ready(function () {

I have a strange problem witch google map on IE. I'm trying to load google map using this code:

$(document).ready(function () {
LoadGoogleMap();
}

LoadGoogleMap() - is my internal funct开发者_JS百科ion thats invoke all code needed to load google map.

Everything works great on Firefox, Opera, Chrom, Safari but not on IE :(

I found that I can use this code to load gmap on IE:

var timer = setTimeout("initialize()", 1500);

But I don't want to wait 1,5s to load gmap. Could anyone help me ?


Try binding it on window load perhaps? $(window).load(function() { loadGMap(); });

And it would be useful providing an example of it not working in IE.

0

精彩评论

暂无评论...
验证码 换一张
取 消