<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.emailstyle18
        {mso-style-name:emailstyle18;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.emailstyle20
        {mso-style-name:emailstyle20;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Have been talking with Duck and
this is where I am right now&#8230;.thought maybe someone else out there might have a
few thoughts&#8230;.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I created two buttons&#8230;.one that
will start refreshing a layer every couple seconds, one that will stop the
refreshing.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I created two js pages that will
handle the code</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Am I on the right path here?</span><span
style='color:#1F497D'>&nbsp; Right now I cant even get to the Start_Listening.js
page, so I know I am not doing something correct.</span><span style='color:
#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Demo.xml makes the calls to the
js pages.&nbsp; </span><span style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Js pages do the work&#8230;.just not
sure how to call the refreshlayer from js page<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>This works currently but I need
it to repeat and refresh every few seconds<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#632423'>&lt;service
name=&quot;refreshLayers2&quot; title=&quot;Refresh Layer&quot;
type=&quot;internal&quot; default=&quot;true&quot; locked=&quot;true&quot;
command=&quot;Events.triggerEvent('refreshlayer', 'Database')&quot;
icon=&quot;shared/images/toolbar/MapleGrove_Buttons/Reload.jpg&quot;
highlight=&quot;shared/images/toolbar/MapleGrove_Buttons/Pictometry.jpg&quot;/&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>THanks<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><u><span style='color:#1F497D'>3 FILES:</span><span
style='color:#1F497D'><o:p></o:p></span></u></b></p>

<p class=MsoNormal><b><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoNormal><b><span style='color:#1F497D'>MapleGrove.demo.xml<o:p></o:p></span></b></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#595959'>&lt;service
name=&quot;refreshLayers2&quot; title=&quot;Refresh Layer every 5 Seconds&quot;
type=&quot;internal&quot; default=&quot;true&quot; locked=&quot;true&quot;
command=&quot;</span><b><span style='font-size:10.0pt;color:#632423'>Events.triggerEvent</span></b><span
style='font-size:10.0pt;color:#632423'>(</span><span style='font-size:10.0pt;
color:#595959'>&#8216;</span><b><span style='color:#632423'>StartListening</span></b><span
style='font-size:10.0pt;color:#632423'>&#8217;</span><span style='font-size:10.0pt;
color:#1F497D'>,</span><u><span style='font-size:10.0pt;color:#548DD4'> 'DO I
NEED SOMETHING HERE'</span></u><span style='font-size:10.0pt;color:#632423'>)&quot;
</span><span style='font-size:10.0pt;color:#595959'>icon=&quot;shared/images/toolbar/MapleGrove_Buttons/Reload.jpg&quot;
highlight=&quot;shared/images/toolbar/MapleGrove_Buttons/Pictometry.jpg&quot;/&gt;</span><span
style='font-size:10.0pt;color:#632423'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#632423'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#595959'>&lt;service
name=&quot;refreshLayers3&quot; title=&quot;Stop the refreshing&quot;
type=&quot;internal&quot; default=&quot;true&quot; locked=&quot;true&quot;
command=&quot;</span><b><span style='font-size:10.0pt;color:#632423'>Events.triggerEvent(</span></b><span
style='font-size:10.0pt;color:#632423'>'</span><b><span style='color:#632423'>StopListening</span></b><span
style='font-size:10.0pt;color:#632423'> ', </span><u><span style='font-size:
10.0pt;color:#548DD4'>'DO I NEED SOMETHING HERE'</span></u><span
style='font-size:10.0pt;color:#632423'>)&quot; </span><span style='font-size:
10.0pt;color:#595959'>icon=&quot;shared/images/toolbar/MapleGrove_Buttons/Reload.jpg&quot;
highlight=&quot;shared/images/toolbar/MapleGrove_Buttons/Pictometry.jpg&quot;/&gt;</span><span
style='font-size:10.0pt;color:#632423'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><span style='color:#1F497D'>StartListening.js<o:p></o:p></span></b></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><span style='color:#632423'>StartListening</span></b><span
style='font-size:10.0pt;color:#632423'>();<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#632423'>setInterval(&quot;setIntervalNow()&quot;,
5000);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
color:#632423'>function setIntervalNow()<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
color:#632423'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
color:#632423'>// Call the&nbsp; Events.triggerEvent('refreshlayer',
'Parcels');<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#632423'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-indent:.5in'><span style='font-size:10.0pt;
color:#632423'>alert('Hello');<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
color:#632423'>}<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><span style='color:#1F497D'>Stop Listening.js<o:p></o:p></span></b></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><span style='color:#632423'>StopListening</span></b><span
style='font-size:10.0pt;color:#632423'>();<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#632423'>clearInterval(&quot;clearIntervalNow
()&quot;, 5000);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
color:#632423'>function clearIntervalNow ()<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
color:#632423'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
color:#632423'>// clearInterval <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#632423'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#632423'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert('Hello');<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
color:#632423'>}<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Dan Little
[mailto:danlittle@yahoo.com] <br>
<b>Sent:</b> Tuesday, November 11, 2008 9:25 AM<br>
<b>To:</b> Jay Kapalczynski<br>
<b>Subject:</b> Re: [Geomoose-users] Refresh Layers<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Do
a google search on setTimeout and setInterval, they aren't built-in to
GeoMOOSE, they're native JS functions.<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>

<hr size=1 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Jay Kapalczynski
&lt;jkapalczynski@ci.maple-grove.mn.us&gt;<br>
<b>To:</b> Dan Little &lt;danlittle@yahoo.com&gt;<br>
<b>Sent:</b> Monday, November 10, 2008 3:02:38 PM<br>
<b>Subject:</b> RE: [Geomoose-users] Refresh Layers</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<div>

<p class=MsoNormal><span style='color:#1F497D'>I did a search in all the .js files,
the main config, demos, and menu files and cant find a &#8230; &nbsp;</span><span
style='color:#632423'>function setTimeout ()</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>Any thoughts as to where they
are?</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>I suppose then I can just call
the function and run the refresh code against the settimeout and set interval
code (somehow)</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>Will cross that bridge when I
get to it.&nbsp; For now just cant seem to find the functions&#8230;.</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>VERY APPRECITED duck&#8230;.</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Dan Little
[mailto:danlittle@yahoo.com] <br>
<b>Sent:</b> Monday, November 10, 2008 2:44 PM<br>
<b>To:</b> Jay Kapalczynski; geomoose-developers@lists.sourceforge.net;
geomoose-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Geomoose-users] Refresh Layers</span><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Jay,
<br>
<br>
You'll need to look into setTimeout or setInterval Javascript functions.&nbsp;
You'll then need to write a couple of wrapper functions and attach that to two
different buttons (easy to do with a service).</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span><o:p></o:p></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>

<hr size=1 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Jay Kapalczynski &lt;jkapalczynski@ci.maple-grove.mn.us&gt;<br>
<b>To:</b> Dan Little &lt;danlittle@yahoo.com&gt;;
&quot;geomoose-developers@lists.sourceforge.net&quot;
&lt;geomoose-developers@lists.sourceforge.net&gt;;
&quot;geomoose-users@lists.sourceforge.net&quot;
&lt;geomoose-users@lists.sourceforge.net&gt;<br>
<b>Sent:</b> Monday, November 10, 2008 2:28:16 PM<br>
<b>Subject:</b> RE: [Geomoose-users] Refresh Layers</span><o:p></o:p></p>

<div>

<p class=MsoNormal><span style='color:#1F497D'>That works great&#8230;.but I am
trying to do something else.&nbsp; Hoping you can point me in the correct
direction.</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>Was trying to get my hands on
the code and modify it in another file.&nbsp; I want to click a button in the
tool bar and it runs the refresh on a particular layer every 10 seconds (or
some other specified time value)</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>So I would need a loop to run
then stop when the another button was clicked.</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>Any thoughts?</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Dan Little
[mailto:danlittle@yahoo.com] <br>
<b>Sent:</b> Monday, November 10, 2008 2:16 PM<br>
<b>To:</b> Jay Kapalczynski; geomoose-developers@lists.sourceforge.net;
geomoose-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Geomoose-users] Refresh Layers</span><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Example:<br>
One Layer - Events.triggerEvent('refreshlayer', 'Parcels');<br>
All Layers - Events.triggerEvent('refreshlayers', '');</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span><o:p></o:p></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>

<hr size=1 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Jay Kapalczynski
&lt;jkapalczynski@ci.maple-grove.mn.us&gt;<br>
<b>To:</b> &quot;geomoose-developers@lists.sourceforge.net&quot;
&lt;geomoose-developers@lists.sourceforge.net&gt;;
&quot;geomoose-users@lists.sourceforge.net&quot;
&lt;geomoose-users@lists.sourceforge.net&gt;<br>
<b>Sent:</b> Monday, November 10, 2008 2:09:48 PM<br>
<b>Subject:</b> [Geomoose-users] Refresh Layers</span><o:p></o:p></p>

<div>

<p class=MsoNormal>Where is the function that refreshes the layers?<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>Anyone out there know how I could configure the code the
refresh a specific layer?<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>Thanks<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

</div>

</div>

</div>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;</span><o:p></o:p></p>

</div>

</div>

</div>

</div>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;</span><o:p></o:p></p>

</div>

</div>

</div>

</div>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

</div>

</body>

</html>