<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">Yes, you need to specify it, there are two options:<br><br>1) Configuration.js has an array called "CUSTOM_SCRIPTS" (IIRC) and you should be able to add an entry for maplegrove.js<br><br>2) Add the following into your "<head>...</head>" entry in index.html<br><br><script type="text/javascript" src="maplegrove.js"></script><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jay Kapalczynski <jkapalczynski@ci.maple-grove.mn.us><br>To: Dan Little <danlittle@yahoo.com>; geomoose-developers@lists.sourceforge.net; geomoose-users@lists.sourceforge.net<br>Sent: Thursday, May 15, 2008 9:36:42 AM<br>Subject: RE: [Geomoose-users] Button in
Geomoose<br><br>
<style>
<!--
_filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
_filtered {font-family:"Californian FB";panose-1:2 7 4 3 6 8 11 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.emailstyle17
        {font-family:"Calibri", "sans-serif";color:windowtext;}
span.EmailStyle18
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
.MsoChpDefault
        {font-size:10.0pt;}
_filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I create the js file…pasted the
function in it.</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I use something like this to
call a function</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(79, 98, 40);"><p><input
type="button" value="Click here" onclick="showAlert();"></p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Do I have to specify the maplegrove.js
file…cause the function is in another file?</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Appreciate the help….a little
green with JavaScript…</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Thanks Brian and Duck</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"> Dan Little
[mailto:danlittle@yahoo.com] <br>
<b>Sent:</b> Thursday, May 15, 2008 9:27 AM<br>
<b>To:</b> Jay Kapalczynski; geomoose-developers@lists.sourceforge.net;
geomoose-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Geomoose-users] Button in Geomoose</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">Hey Jay,<br>
<br>
I've ran into this before with different browsers, occasionally they don't take
well to the addition of "script" tags in the document after it's
loaded.<br>
<br>
In the config file there is a "CUSTOM_SCRIPTS" array which lists
javascript files that will be loaded on startup. (I think this is fully
working, it was being used at Saint Paul.) <br>
<br>
So I'd do something like this.<br>
<br>
create a file called "maplegrove.js" which contains your function
(which I assume you later want to do more complex things).<br>
<br>
maplegrove.js.<br>
--------------------<br>
function alertSomeStuff(msg) {<br>
alert('This is your message:' + msg);<br>
}<br>
<br>
The next thing I would make sure you do is when defining the button to make
sure you use one of two conventions.<br>
<br>
<!--- browsers sometimes get picky about onClick versus onclick, so try to
use the lower-case only version --><br>
<button onclick="alertSomeStuff('[PARCEL_ID]')">My
Button</button><br>
<br>
or...<br>
<br>
<!-- With inputs don't forget the ending "/>" --><br>
<input onclick="alertSomeStuff('[PARCEL_ID]')" value="My
button value"/><br>
<br>
-Duck</span></p>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;">----- Original Message ----<br>
From: Jay Kapalczynski <jkapalczynski@ci.maple-grove.mn.us><br>
To: geomoose-developers@lists.sourceforge.net;
geomoose-users@lists.sourceforge.net<br>
Sent: Thursday, May 15, 2008 9:13:29 AM<br>
Subject: [Geomoose-users] Button in Geomoose<span style="font-size: 12pt; font-family: "Times New Roman","serif";"></span></p>
<div>
<p class="MsoNormal"><b><span style="font-family: "Californian FB","serif"; color: rgb(31, 73, 125);">I am trying this:</span></b></p>
<p class="MsoNormal"><b><span style="font-family: "Californian FB","serif"; color: rgb(31, 73, 125);"> </span></b></p>
<p class="MsoNormal"><b><span style="font-family: "Californian FB","serif"; color: rgb(31, 73, 125);">This is on my Identify_Parcels.html</span></b></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; font-family: "Californian FB","serif"; color: rgb(31, 73, 125);"> </span></b></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; font-family: "Californian FB","serif"; color: rgb(31, 73, 125);">The button shows up in the tab after you do the idntify but
nothing happens when I click the actual button</span></b></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; font-family: "Californian FB","serif"; color: rgb(31, 73, 125);"> </span></b></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; font-family: "Californian FB","serif"; color: rgb(31, 73, 125);">Any thoughts?</span></b></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; font-family: "Californian FB","serif"; color: rgb(31, 73, 125);"> </span></b></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; font-family: "Californian FB","serif"; color: rgb(31, 73, 125);"> </span></b></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; font-family: "Californian FB","serif"; color: navy;"> </span></b></p>
<p class="MsoNormal"><tr></p>
<p class="MsoNormal"><td colspan="2"><b>Parcels
Layer</b></td></p>
<p class="MsoNormal"></tr></p>
<p class="MsoNormal"><tr></p>
<p class="MsoNormal"><td align="right">PID:</td></p>
<p class="MsoNormal"><td>[PID]</td></p>
<p class="MsoNormal"></tr></p>
<p class="MsoNormal"><tr></p>
<p class="MsoNormal"><td align="right">Address:</td></p>
<p class="MsoNormal"><td>[ADDRESS]</td></p>
<p class="MsoNormal"></tr></p>
<p class="MsoNormal"><tr></p>
<p class="MsoNormal"><td align="right">Assessing
Sketches:</td></p>
<p class="MsoNormal"><td><a
href="pdf\Assessing_Sketches\[SKETCHES]"
target="_blank">[SKETCHES]</a></td>
</p>
<p class="MsoNormal"></tr></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><script language="javascript"
type="text/javascript"></p>
<p class="MsoNormal">function showAlert() {</p>
<p class="MsoNormal"> alert('This is an alert message!');</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"></script></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><p><input type="button" value="Click
here" onClick="showAlert();"></p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif";"> </span></p>
</div>
</div></div></div><br>
</body></html>