[OpenLayers-Users] Bug possibly related to ticket #1910
Atle Frenvik Sveen
atle.frenvik.sveen at geomatikk.no
Wed Jan 13 08:51:47 EST 2010
Hello all!
This may be related to Ticket #1910, although I’m not 100% sure. This
ticket was the one that lead me onto this problem, so thought it might
be relevant information here.
I encountered an error:
“Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.4)
Timestamp: Thu, 17 Dec 2009 11:15:56 UTC
Message: Invalid argument.
Line: 159
Char: 13
Code: 0
URI:
http://dev.openlayers.org/releases/OpenLayers-2.8/lib/OpenLayers/Renderer/VML.js”
In IE 8 running in compability view on Win XP.
After digging a bit I tracked my problem down to being related to four
factors:
1)The use of IE7 (or IE8 in compability mode)
2)The use of a vector layer
3)Using tables as part of my laout (don’t ask why)
4)Initializing OpenLayers from inside a <table>-tag on the page
I’ve managed to recreate the issue by modifying the
http://dev.openlayers.org/releases/OpenLayers-2.8/examples/vector-features-with-text.html example. What I’ve done is two things:
1) Adding a <table><tr><td></td></tr></table> block around the
body-content
2) Moved the init()-call from the body onLoad to a <script>-tag inside
the table (but below the map div)
This file is attached (I’ve hard-coded in references to javascript and
css on openlayers.org).
It seems to me that line 159 in VML.js, which is dealing with page
elements (at least that is what I recon) somehow gets confused by the
addition of tables.
The easy fix is of course either to skip the use of tables, or move the
<script>-bloc down below the tables. Other than that am I clueless on
how to fix this issue, neither am I sure if this is related to ticket
#1910.
For me the problem was resolved by appying my simple fix, but I thought
someone might be interested in investigating this further.
Best Regards
Atle Frenvik Sveen
--
Atle Frenvik Sveen
Geomatikk IKT AS
tel: 45 27 86 89
mail. atle.frenvik.sveen at geomatikk.no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100113/d96c5188/simple2.html
More information about the Users
mailing list