[Users] mappanel-div.html - element is undefined error.
Eric Lemoine
eric.lemoine at camptocamp.com
Tue Apr 14 07:28:22 CEST 2009
Hi
The current code base (trunk) requires the trunk of OpenLayers.
If you check out http://svn.geoext.org/core/trunk, OpenLayers trunk
and Ext 2.2.1 will also be checked out for you.
When we will release GeoExt we will specify the versions of OpenLayers
and Ext this release works with. Presumably GeoExt 0.1 will work with
OpenLayers 2.8 (whose first release candidate is about to come out)
and Ext 2.2.1.
Thanks,
Eric
2009/4/14, Myeong Hun Jeong <mhjeong74 at gmail.com>:
> Dear list.
>
> I am a beginner at GeoExt.
> I downloaded GeoExt, ExtJs-2.2.1 and OpenLayers2.7 repectively.
> After downloading them, I test mappanel-div.html
> But, I encounter an error.
> The error message is that
> element is undefined.
> Element.js(38 line)
> hasClass: function(element, name) {
> 138 var names = element.className;
> 139 return (!!names && new RegExp("(^|\\s)" + name +
> "(\\s|$)").test(names));
> 140 },
>
> And I also tested lib/GeoExt/widgets/Popup.html
> I got the same erroe message.
>
> exception: : object: element is undefined
>
> in ( ) at
> http://localhost:8089/osgeo/geo/openlayers/lib/OpenLayers/Map.jsline
> 427
> in ( ) at
> http://localhost:8089/osgeo/geo/openlayers/lib/OpenLayers/BaseTypes/Class.jsline
> 32
> in createMap( ) at
> http://localhost:8089/osgeo/geo/geoext/tests/lib/GeoExt/widgets/MapPanel.htmlline
> 12
> in test_center( [object Object]) at
> http://localhost:8089/osgeo/geo/geoext/tests/lib/GeoExt/widgets/MapPanel.htmlline
> 120
> in ( ) at http://localhost:8089/osgeo/geo/geoext/tests/run-tests.html line
> 985
> in ( ) at http://localhost:8089/osgeo/geo/geoext/tests/run-tests.html line
> 943
> in onload( [object Event]) at
> http://localhost:8089/osgeo/geo/geoext/tests/run-tests.html line 1
>
> when I downloaded openlayers, I moved img, lib, theme folder into
> appropriate location.
>
> How to solve this problem?
>
--
Envoyé avec mon mobile
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
More information about the Users
mailing list