[OpenLayers-Users] Problem in Internet Explorer

Tyler Durden tylersticky at gmail.com
Wed Sep 12 09:36:10 EDT 2007


You are right Christopher.
I'm using jquery $(document).ready(function() {} and seems that won't
work, with <body initMap()> works.

Thanks,
Tyler

On 9/11/07, Christopher Schmidt <crschmidt at metacarta.com> wrote:
> On Tue, Sep 11, 2007 at 05:56:51PM +0100, Tyler Durden wrote:
> > I've got a javascript error on Internet Explorer on line 50 in the
> > file OpenLayers/Renderer/VML.js:
> >
> > /**
> >      * @returns Whether or not the browser supports the VML renderer
> >      * @type Boolean
> >      */
> >     supported: function() {
> >         var supported = document.namespaces;
> >         return supported;
> >     },
> >
> > I'm using the trunk version.
> > Any ideas?
>
> My first guess is that you're attempting to start using the OpenLayers
> code before the document is fully loaded. Although most of OpenLayers
> will work that way, we advise against it, and it won't work with VML in
> OpenLayers.
>
> Is this possible? If you don't think so, could you provide HTML which is
> causing the problem?
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>



More information about the Users mailing list