Hi Frest,
Normally map initialization code is put into a function that is called
when the page is loaded. See an example at the Mapstraction sandbox:
http://mapstraction.appspot.com/
That may not be an option with WordPress, so instead you can do
something like this:
function init_map() {
// code to create map
}
window.onload = init_map;
Here you have created a function, then set an event handler so that
the function won''t be called until the page is loaded. That should
avoid the errors you''re seeing in Internet Explorer (though I
haven''t
tested the above code).
--Adam
---
Adam DuVander
I like maps: http://mapscripting.com
I like simple: http://adamduvander.com
On Aug 22, 2009, at 4:42 AM, info at frest.de wrote:
> Hi,
> I use a bing map via mapstraction in worpdress. It works for all
> browsers exept the Internet Explorer. With IE I get an HTML parsing
> error, because the map is not loaded completely. Is there a
> possibility to use something like this: "map.onLoadMap"? This
would
> prevent the error, but I don''t find such a function in
mapstraction.
>
> Greetings,
> frest
>
> PS: http://www.denktfrei.de/
> _______________________________________________
> Mapstraction mailing list
> Mapstraction at lists.mapstraction.com
> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com