Ticket #2302 (closed feature: invalid)

Opened 4 years ago

Last modified 4 years ago

"Invalid argument" and "Unspecified error" errors in IE

Reported by: cpatterson Owned by: dwins
Priority: minor Milestone: 2.9 Release
Component: general Version: 2.8
Keywords: Cc:
State:

Description

We're using Openlayers on FixCity.org, and have run into some issues for users on IE.

Specifically, we get "Invalid argument" errors in Openlayers.js line 603 - the highlighted text in the IE8 debugger is

style.addRule('olv\\:*',"behavior: url(#default#VML); "+"position: absolute; display: inline-block;"

This can be seen at  http://bikeraction-dev.thor.openplans.org/

We also get "Unspecified error" in Openlayers.js line 604 - the highlighted text in the IE8 debugger there is

return!!(document.namespaces)

This can be seen at  http://bikeraction-dev.thor.openplans.org/rack/new/

Our ticket is at  https://projects.openplans.org/fixcity/ticket/88 in case there's any more useful information there

Change History

Changed 4 years ago by ahocevar

  • status changed from new to closed
  • resolution set to invalid

The version of OpenLayers you are using is too old to support IE8. The problem you are experiencing was a known issue and is fixed in the 2.8 release.

Changed 4 years ago by crschmidt

That's part of the problem. Another part of the problem is that you're running your code (which uses vectors) in a "script defer="defer"" block, but you can't do that. You have to wait for the document onload to create any vector layers in IE, otherwise you get the second error.

Note: See TracTickets for help on using tickets.