[Users] mappanel-div.html - element is undefined error.

Myeong Hun Jeong mhjeong74 at gmail.com
Tue Apr 14 06:12:19 CEST 2009


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20090414/d9a5ac2b/attachment.htm 


More information about the Users mailing list