<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>
&nbsp;<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>
&nbsp;<BR>
&lt;script type="text/javascript" src="extensions/Disclaimer.js"&gt;&lt;/script&gt;<BR>
&nbsp;<BR>
in the geomoose application (geomoose.html)?<BR>
&nbsp;<BR>
Maybe, just maybe, as I am a newbie in javascript,&nbsp;is there a problem with (in geomoose.js):<BR>
&nbsp;<BR>
GeoMOOSE.UX.Extension = OpenLayers.Class({<BR>&nbsp;initialize: function () {<BR>&nbsp;&nbsp;/* do nothing on creation */<BR>&nbsp;},<BR>&nbsp;load: function() {<BR>&nbsp;&nbsp;/* do nothing on load */<BR>&nbsp;},<BR>&nbsp;CLASS_NAME: 'GeoMOOSE.UX.Extension'<BR>});<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
FYI:<BR>
Disclaimer.js<BR>
DisclaimerExtension = new OpenLayers.Class(GeoMOOSE.UX.Extension, {<BR>&nbsp;load: function() {<BR>&nbsp;&nbsp;if(window.DISCLAIMER_MESSAGE) {<BR>&nbsp;&nbsp;&nbsp;alert(window.DISCLAIMER_MESSAGE);<BR>&nbsp;&nbsp;else {<BR>&nbsp;&nbsp;&nbsp;alert("Hello, World!");<BR>&nbsp;&nbsp;}<BR>&nbsp;},<BR>&nbsp;<BR>&nbsp;CLASS_NAME: "DisclaimerExtension"<BR>});<BR>
GeoMOOSE.UX.register('DisclaimerExtension');<BR>
&nbsp;<BR>
&nbsp;<BR>
Thanks<BR>
&nbsp;<BR>
Franz Okyere<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<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>