From: Pierre M. <pie...@ca...> - 2010-02-16 14:13:40
|
Hi, > Using Firefox the application works fine, but with Internet Explorer I have > several problems: > > - Two Internet Explorer warnings appear : > > Line: 2064 > Character: 909 > Error: Expected identifier, string or number > URL: http://localhost/8081/geonetwork/srv/en/main.home > > Line: 28 > Character: 15 > Error: 'extentMap' is undefined > URL: http://localhost/8081/geonetwork/srv/en/main.home > I've got slightly the same problems here, but using Jsl (a jslint command-line tool), or by using jslint.com online tool, I could not manage to find the issue. If you test your GeoNetwork instance by using a '?debug' option onto the URL, you may use non-minified version of Javascript files ; using this parameter, it succeeds to load the main page of GN whithout prompting for JS errors. So is it possible that the problem occurs after minification (using jsbuild) ? In addition, looking at web/geonetwork/xsl/geo/utils.xsl, it seems that the minified version of the JS file used to be called 'geo-libs.js', but with a recent svn checkout, I coult not find this file anymore, and seem to have been renamed gn.libs.js. I attached to this mail a patch related to my "JS debug session", removing extra comas / semicolons, or adding where it was necessary, hoping that would help to find the bug, even if this is not supposed to fix the issue currently; (I did not regenerate the minified file, by the way). I'll let you know if I actually succeed in fixing this bug, but a current workaround for now could be to use the "debug versions" of the scripts. Regards, -- Pierre Mauduit Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac Cedex Tel : + 33 (0)4 79 44 44 92 http://www.camptocamp.com pie...@ca... |