[Geomoose-users] User extensions- Disclaimer not working!
FRANZ OKYERE
franzzoa at hotmail.com
Thu Feb 25 23:29:58 EST 2010
Hi all,
I want write my own extension, so I started by testing the disclaimer.js extension. Apparently, it does not do nothing. Is there anything I need to do apart from including,
<script type="text/javascript" src="extensions/Disclaimer.js"></script>
in the geomoose application (geomoose.html)?
Maybe, just maybe, as I am a newbie in javascript, is there a problem with (in geomoose.js):
GeoMOOSE.UX.Extension = OpenLayers.Class({
initialize: function () {
/* do nothing on creation */
},
load: function() {
/* do nothing on load */
},
CLASS_NAME: 'GeoMOOSE.UX.Extension'
});
FYI:
Disclaimer.js
DisclaimerExtension = new OpenLayers.Class(GeoMOOSE.UX.Extension, {
load: function() {
if(window.DISCLAIMER_MESSAGE) {
alert(window.DISCLAIMER_MESSAGE);
else {
alert("Hello, World!");
}
},
CLASS_NAME: "DisclaimerExtension"
});
GeoMOOSE.UX.register('DisclaimerExtension');
Thanks
Franz Okyere
_________________________________________________________________
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100226/c34ac87d/attachment.html
More information about the Geomoose-users
mailing list