Unspecified error on Google Maps

Asked By 20 points N/A Posted on -
qa-featured

Hello,

When the map loads I am getting the following error.

The error is in the original, unmodified OpenLayers.js file on this line:

Return!! (document. namespaces);

I have tried rewriting it to:

Return (typeof (document. namespaces) != 'undefined');

And it worked but then I get same "unspecified" errors on further referrals to document.namespaces:

If (! document.namespaces.olv){document.namespaces.add("olv",this.xmlns); …

I tried rewriting this to:

If (typeof (document. Namespaces. olv) == 'undefined') { …

But I get the same "unspecified error".

This error occurred on Internet Explorer 7, but not in Firefox.

Give me your suggestions on this.

Thank you.

SHARE
Answered By 30 points N/A #177571

Unspecified error on Google Maps

qa-featured
Hi there Jeanne L Jackson,
 
This is a very well known bug appearing in Internet Explorer 7 and Internet Explorer 8. In any other browser this should work fine. The quickest workaround is to use the window load event and not the ready event.
 
Also, make sure your HTML code is written properly to match the requirements written here:
 
 
Best regards,
Drake Vivian

 

Related Questions