<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;">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<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: 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<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:"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;}
.MsoChpDefault
        {}
_filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {}
-->
</style>
<div class="Section1"><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><br>
</body></html>