[Users] How to reference geoext.js

Eric Lemoine eric.lemoine at camptocamp.com
Thu Aug 5 07:41:40 CEST 2010


On Wednesday, August 4, 2010, Eoin Mac Aoidh <eoinyp at yahoo.com> wrote:
> Hi all,

Hi

> I am confused about how to reference geoext.
> I have been using
> "<script src="GeoExt/script/GeoExt.js" type="text/javascript"></script>
> <script type="text/javascript" src="myconfiguration.js"></script>"
> in my html file respectively to reference GeoExt and hold my Ext.onReady function. Everything has been running smoothly so far, however, I would like to modify some of the geoext functionality, notably to apply a patch to:
> GeoExt\lib\GeoExt\widgets\LayerOpacitySlider.js
>
> I applied the changes to the above file, but the code in myconfiguration.js cannot reach the changes.

script/GeoExt.js includes the whole library. This file is built by
merging and compressing every js file composing the library. So if you
modify files in lib/ you need to rebuild script/GeoExt.js.

For testing purpose you can reference lib/GeoExt.js instead of
script/GeoExt.js in your web page. In this case you'll use an unmerged
and uncompressed version of the library, and any change to the js
files in lib/ will be visible. Alternatively, you can keep
script/GeoExt.js in your page and add a script tag for your patched
LayerOpacitySlider.js right after it.

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


More information about the Users mailing list