[OpenLayers-Dev] IE 7 / 8 error: appendChild not supported

Cédric Moullet cedric.moullet at camptocamp.com
Sat Jan 2 05:05:17 EST 2010


Hi,
Yes, the explanation is quite clear:
http://tamentis.com/doc/no_such_interface/

<http://tamentis.com/doc/no_such_interface/>But, unfortunately, the solution
is probably not so obvious, since it implies to create all dom elements of
the child window with this child window. So, this means to modify the 14
function "document.createElement" of the OpenLayers code base:

if (childWindow) {
   childWindow.createElement
} else {
   document.createElement
}

For my case, I can probably create a new clone function for the layers.
But, in general, does it make sense to support in OpenLayers this IE problem
(in other word: is it worth trying to make an OL patch) ?
Thanks,
Cédric
2010/1/1 Eric Lemoine <eric.lemoine at camptocamp.com>

> 2010/1/1 Cédric Moullet <cedric.moullet at camptocamp.com>:
> > Hi Eric,
> > I have tried with WMS and vector layers, and the same error
> > appears:
> http://dev.geoext.org/sandbox/cmoullet/ux/Printer/examples/PrinterExampleWMS.html
>
> Google q="no+such+interface+supported"+appendChild+window.open gives
> interesting results.
>
>
> Cheers,
>
> --
> Eric Lemoine
>
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
>
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemoine at camptocamp.com
> http://www.camptocamp.com
>



-- 
CTO Geospatial Camptocamp SA
Cédric Moullet
PSE A
CH-1015 Lausanne
www.camptocamp.com  / www.mapfish.org / twitter.com/cedricmoullet /
mapfishblog.blogspot.com/

+41 79 759 69 83 (mobile)
+41 21 619 10 21 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100102/09292f61/attachment.html


More information about the Dev mailing list