<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi all,<BR>
<BR>
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,<BR>
<BR>
<script type="text/javascript" src="extensions/Disclaimer.js"></script><BR>
<BR>
in the geomoose application (geomoose.html)?<BR>
<BR>
Maybe, just maybe, as I am a newbie in javascript, is there a problem with (in geomoose.js):<BR>
<BR>
GeoMOOSE.UX.Extension = OpenLayers.Class({<BR> initialize: function () {<BR> /* do nothing on creation */<BR> },<BR> load: function() {<BR> /* do nothing on load */<BR> },<BR> CLASS_NAME: 'GeoMOOSE.UX.Extension'<BR>});<BR>
<BR>
<BR>
<BR>
FYI:<BR>
Disclaimer.js<BR>
DisclaimerExtension = new OpenLayers.Class(GeoMOOSE.UX.Extension, {<BR> load: function() {<BR> if(window.DISCLAIMER_MESSAGE) {<BR> alert(window.DISCLAIMER_MESSAGE);<BR> else {<BR> alert("Hello, World!");<BR> }<BR> },<BR> <BR> CLASS_NAME: "DisclaimerExtension"<BR>});<BR>
GeoMOOSE.UX.register('DisclaimerExtension');<BR>
<BR>
<BR>
Thanks<BR>
<BR>
Franz Okyere<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>                                            <br /><hr />Not got a Hotmail account? <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new'>Sign-up now - Free</a></body>
</html>