<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-name:emailstyle21;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.emailstyle22
        {mso-style-name:emailstyle22;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.emailstyle23
        {mso-style-name:emailstyle23;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {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'>Thanks Duck once again for your
patience&#8230;.steered me in the right direction<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'>The below is refreshing a specific
layer every 5 seconds&#8230;the reason for this is that the layer is being created
from a MySQL server table that is being updated through an Access Front end&#8230;as
the server table gets updated (accidents) the refresh on the layer creates a
new one thus showing the dots appear and disappear&#8230;<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>This could be used for tracking
vehicles as well&#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'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><span style='font-size:12.0pt;color:#17365D'>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='color:#1F497D'>&lt;service
name=&quot;refreshLayers3&quot; title=&quot;Refresh Layer every 2 Seconds&quot;
type=&quot;internal&quot; default=&quot;true&quot; locked=&quot;true&quot;
command=&quot;setIntervalNow()&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'>&lt;service
name=&quot;refreshLayers4&quot; title=&quot;Stop the refreshing&quot;
type=&quot;internal&quot; default=&quot;true&quot; locked=&quot;true&quot;
command=&quot;clearIntervalNow()&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></o:p></span></p>

<p class=MsoNormal><b><span style='font-size:12.0pt;color:#17365D'>Demo.html
page: between the </span></b><b><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#17365D'>&lt;head&gt; ... &lt;/head&gt;<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='color:#1F497D'>&lt;script
type=&quot;text/javascript&quot;
src=&quot;lib/Start_Listening.js&quot;&gt;&lt;/script&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></o:p></span></p>

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

<p class=MsoNormal><b><span style='font-size:12.0pt;color:#17365D'>Start_Listening.js
page:<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='color:#1F497D'>varTest = 0;<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'>function setIntervalNow()<o:p></o:p></span></p>

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

<p class=MsoNormal><span style='color:#1F497D'>varTest =
setInterval(&quot;setIntervalNow2()&quot;, 5000);<o:p></o:p></span></p>

<p class=MsoNormal><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'>function setIntervalNow2() <o:p></o:p></span></p>

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

<p class=MsoNormal><span style='color:#1F497D'>Events.triggerEvent('refreshlayer',
'Database');<o:p></o:p></span></p>

<p class=MsoNormal><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'>function clearIntervalNow()<o:p></o:p></span></p>

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

<p class=MsoNormal><span style='color:#1F497D'>clearInterval(varTest);<o:p></o:p></span></p>

<p class=MsoNormal><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'><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>

<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> Monday, November 17, 2008 10:23 AM<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 Automatically<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"'>Jay,
<br>
<br>
I can solidly say that you're off by a&nbsp; bit.<br>
<br>
What you need to do in the command attribute is set it to call the function in
StartListening.js, StartListening.js also needs to be included in your &lt;head&gt;
... &lt;/head&gt; in the html page.<br>
<br>
So, say you had a function called &quot;foobar()&quot; in Starting
Listening.js, then the command attribute would be...<br>
<br>
command=&quot;foobar()&quot;<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> &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 17, 2008 10:07:11 AM<br>
<b>Subject:</b> Re: [Geomoose-users] Refresh Layers Automatically</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'>Anyone with any thoughts on why
I cant even get to the StartListening Function in the StartListening.js page
from this call?</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='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><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'>Thanks&#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'>&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"'> Jay Kapalczynski <br>
<b>Sent:</b> Wednesday, November 12, 2008 11:09 AM<br>
<b>To:</b> geomoose-developers@lists.sourceforge.net;
geomoose-users@lists.sourceforge.net<br>
<b>Subject:</b> RE: [Geomoose-users] Refresh Layers Automatically</span><o:p></o:p></p>

</div>

</div>

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

<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;.</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 created two buttons&#8230;.one that
will start refreshing a layer every couple seconds, one that will stop the
refreshing.</span><o:p></o:p></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'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>Am I on the right path
here?&nbsp; Right now I cant even get to the Start_Listening.js page, so I know
I am not doing something correct.</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'>Demo.xml makes the calls to the
js pages.&nbsp; </span><o:p></o:p></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</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'>This works currently but I need
it to repeat and refresh every few seconds</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='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;</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'>THanks</span><o:p></o:p></p>

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

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

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

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

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></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><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#632423'>&nbsp;</span><o:p></o:p></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><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><b><span style='color:#1F497D'>StartListening.js</span></b><o:p></o:p></p>

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

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

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

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

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

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

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

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

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
color:#632423'>}</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><b><span style='color:#1F497D'>Stop Listening.js</span></b><o:p></o:p></p>

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

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

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

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

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

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

<p class=MsoNormal><span style='font-size:10.0pt;color:#632423'>&nbsp;</span><o:p></o:p></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');</span><o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
color:#632423'>}</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> Tuesday, November 11, 2008 9:25 AM<br>
<b>To:</b> Jay Kapalczynski<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"'>Do
a google search on setTimeout and setInterval, they aren't built-in to
GeoMOOSE, they're native JS functions.</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;<br>
<b>Sent:</b> Monday, November 10, 2008 3:02:38 PM<br>
<b>Subject:</b> RE: [Geomoose-users] Refresh Layers</span><o:p></o:p></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"'>&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>