<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Some small changes you may want to make for cleanliness. "0" could technically be an interval ID, and if you try to "stop" the interval of 0 when it does not exist, you'll get a javascript error.<br><br>var varTest = -1;<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><p class="MsoNormal"><span style="color: rgb(31, 73, 125);">function clearIntervalNow()</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">{</span></p><p class="MsoNormal"><span style="color: rgb(31, 73, 125);"></span></p> if(varText >= 0) {<br><p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> clearInterval(varTest);</span></p><p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> }<br></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">}</span></p><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Jay Kapalczynski <jkapalczynski@ci.maple-grove.mn.us><br><b><span style="font-weight: bold;">To:</span></b> Dan Little <danlittle@yahoo.com>; "geomoose-developers@lists.sourceforge.net" <geomoose-developers@lists.sourceforge.net>; "geomoose-users@lists.sourceforge.net" <geomoose-users@lists.sourceforge.net><br><b><span style="font-weight: bold;">Sent:</span></b> Monday, November 17, 2008 12:34:38 PM<br><b><span style="font-weight: bold;">Subject:</span></b> RE: [Geomoose-users] Refresh Layers Automatically SOLVED<br></font><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;}
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;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0in;margin-left:0in;font-size:10.0pt;font-family:"Times New Roman", "serif";}
span.emailstyle17
        {font-family:"Calibri", "sans-serif";color:windowtext;}
span.emailstyle18
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
span.emailstyle20
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
span.emailstyle21
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
span.emailstyle22
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
span.emailstyle23
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
span.EmailStyle24
        {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);">Thanks Duck once again for your
patience….steered me in the right direction</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">The below is refreshing a specific
layer every 5 seconds…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…as
the server table gets updated (accidents) the refresh on the layer creates a
new one thus showing the dots appear and disappear…</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">This could be used for tracking
vehicles as well….</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(23, 54, 93);">Demo.xml:</span></b></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><service
name="refreshLayers3" title="Refresh Layer every 2 Seconds"
type="internal" default="true" locked="true"
command="setIntervalNow()"
icon="shared/images/toolbar/MapleGrove_Buttons/Reload.jpg"
highlight="shared/images/toolbar/MapleGrove_Buttons/Pictometry.jpg"/></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><service
name="refreshLayers4" title="Stop the refreshing"
type="internal" default="true" locked="true"
command="clearIntervalNow()"
icon="shared/images/toolbar/MapleGrove_Buttons/Reload.jpg"
highlight="shared/images/toolbar/MapleGrove_Buttons/Pictometry.jpg"/></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">=====================================================================================</span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(23, 54, 93);">Demo.html
page: between the </span></b><b><span style="font-size: 12pt; font-family: "Arial","sans-serif"; color: rgb(23, 54, 93);"><head> ... </head></span></b></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><script
type="text/javascript"
src="lib/Start_Listening.js"></script></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">=====================================================================================</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(23, 54, 93);">Start_Listening.js
page:</span></b></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">varTest = 0;</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">function setIntervalNow()</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">{</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">varTest =
setInterval("setIntervalNow2()", 5000);</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">}</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">function setIntervalNow2() </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">{</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Events.triggerEvent('refreshlayer',
'Database');</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">}</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">function clearIntervalNow()</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">{</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">clearInterval(varTest);</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">}</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </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> 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</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">Jay,
<br>
<br>
I can solidly say that you're off by a 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 <head>
... </head> in the html page.<br>
<br>
So, say you had a function called "foobar()" in Starting
Listening.js, then the command attribute would be...<br>
<br>
command="foobar()"</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";"> </span></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">
<hr align="center" size="1" width="100%">
</span></div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"> Jay Kapalczynski
<jkapalczynski@ci.maple-grove.mn.us><br>
<b>To:</b> "geomoose-developers@lists.sourceforge.net"
<geomoose-developers@lists.sourceforge.net>;
"geomoose-users@lists.sourceforge.net"
<geomoose-users@lists.sourceforge.net><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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<div>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Anyone with any thoughts on why
I cant even get to the StartListening Function in the StartListening.js page
from this call?</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(89, 89, 89);"><service
name="refreshLayers2" title="Refresh Layer every 5 Seconds"
type="internal" default="true" locked="true"
command="</span><b><span style="font-size: 10pt; color: rgb(99, 36, 35);">Events.triggerEvent</span></b><span style="font-size: 10pt; color: rgb(99, 36, 35);">(</span><span style="font-size: 10pt; color: rgb(89, 89, 89);">‘</span><b><span style="color: rgb(99, 36, 35);">StartListening</span></b><span style="font-size: 10pt; color: rgb(99, 36, 35);">’</span><span style="font-size: 10pt; color: rgb(31, 73, 125);">,</span><u><span style="font-size: 10pt; color: rgb(84, 141, 212);"> 'DO I
NEED SOMETHING HERE'</span></u><span style="font-size: 10pt; color: rgb(99, 36, 35);">)"
</span><span style="font-size: 10pt; color: rgb(89, 89, 89);">icon="shared/images/toolbar/MapleGrove_Buttons/Reload.jpg"
highlight="shared/images/toolbar/MapleGrove_Buttons/Pictometry.jpg"/></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….</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: windowtext -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";"> 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></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Have been talking with Duck and
this is where I am right now….thought maybe someone else out there might have a
few thoughts….</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 created two buttons….one that
will start refreshing a layer every couple seconds, one that will stop the
refreshing.</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I created two js pages that will
handle the code</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Am I on the right path
here? Right now I cant even get to the Start_Listening.js page, so I know
I am not doing something correct.</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Demo.xml makes the calls to the
js pages. </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Js pages do the work….just not
sure how to call the refreshlayer from js page</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">This works currently but I need
it to repeat and refresh every few seconds</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(99, 36, 35);"><service
name="refreshLayers2" title="Refresh Layer"
type="internal" default="true" locked="true"
command="Events.triggerEvent('refreshlayer', 'Database')"
icon="shared/images/toolbar/MapleGrove_Buttons/Reload.jpg"
highlight="shared/images/toolbar/MapleGrove_Buttons/Pictometry.jpg"/></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </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</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><b><u><span style="color: rgb(31, 73, 125);">3 FILES:</span></u></b></p>
<p class="MsoNormal"><b><span style="color: rgb(31, 73, 125);"> </span></b></p>
<p class="MsoNormal"><b><span style="color: rgb(31, 73, 125);">MapleGrove.demo.xml</span></b></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(89, 89, 89);"><service
name="refreshLayers2" title="Refresh Layer every 5 Seconds"
type="internal" default="true" locked="true"
command="</span><b><span style="font-size: 10pt; color: rgb(99, 36, 35);">Events.triggerEvent</span></b><span style="font-size: 10pt; color: rgb(99, 36, 35);">(</span><span style="font-size: 10pt; color: rgb(89, 89, 89);">‘</span><b><span style="color: rgb(99, 36, 35);">StartListening</span></b><span style="font-size: 10pt; color: rgb(99, 36, 35);">’</span><span style="font-size: 10pt; color: rgb(31, 73, 125);">,</span><u><span style="font-size: 10pt; color: rgb(84, 141, 212);"> 'DO I
NEED SOMETHING HERE'</span></u><span style="font-size: 10pt; color: rgb(99, 36, 35);">)"
</span><span style="font-size: 10pt; color: rgb(89, 89, 89);">icon="shared/images/toolbar/MapleGrove_Buttons/Reload.jpg"
highlight="shared/images/toolbar/MapleGrove_Buttons/Pictometry.jpg"/></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(99, 36, 35);"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(89, 89, 89);"><service
name="refreshLayers3" title="Stop the refreshing"
type="internal" default="true" locked="true"
command="</span><b><span style="font-size: 10pt; color: rgb(99, 36, 35);">Events.triggerEvent(</span></b><span style="font-size: 10pt; color: rgb(99, 36, 35);">'</span><b><span style="color: rgb(99, 36, 35);">StopListening</span></b><span style="font-size: 10pt; color: rgb(99, 36, 35);"> ', </span><u><span style="font-size: 10pt; color: rgb(84, 141, 212);">'DO I NEED SOMETHING HERE'</span></u><span style="font-size: 10pt; color: rgb(99, 36, 35);">)" </span><span style="font-size: 10pt; color: rgb(89, 89, 89);">icon="shared/images/toolbar/MapleGrove_Buttons/Reload.jpg"
highlight="shared/images/toolbar/MapleGrove_Buttons/Pictometry.jpg"/></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><b><span style="color: rgb(31, 73, 125);">StartListening.js</span></b></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><b><span style="color: rgb(99, 36, 35);">StartListening</span></b><span style="font-size: 10pt; color: rgb(99, 36, 35);">();</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(99, 36, 35);">setInterval("setIntervalNow()",
5000);</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; color: rgb(99, 36, 35);">function setIntervalNow()</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; color: rgb(99, 36, 35);">{</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; color: rgb(99, 36, 35);">// Call the Events.triggerEvent('refreshlayer',
'Parcels');</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(99, 36, 35);"> </span></p>
<p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 10pt; color: rgb(99, 36, 35);">alert('Hello');</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; color: rgb(99, 36, 35);">}</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><b><span style="color: rgb(31, 73, 125);">Stop Listening.js</span></b></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><b><span style="color: rgb(99, 36, 35);">StopListening</span></b><span style="font-size: 10pt; color: rgb(99, 36, 35);">();</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(99, 36, 35);">clearInterval("clearIntervalNow
()", 5000);</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; color: rgb(99, 36, 35);">function clearIntervalNow ()</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; color: rgb(99, 36, 35);">{</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; color: rgb(99, 36, 35);">// clearInterval </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(99, 36, 35);"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(99, 36, 35);">
alert('Hello');</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; color: rgb(99, 36, 35);">}</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: windowtext -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> Tuesday, November 11, 2008 9:25 AM<br>
<b>To:</b> Jay Kapalczynski<br>
<b>Subject:</b> Re: [Geomoose-users] Refresh Layers</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; 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></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";"> </span></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">
<hr align="center" size="1" width="100%">
</span></div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"> Jay Kapalczynski
<jkapalczynski@ci.maple-grove.mn.us><br>
<b>To:</b> Dan Little <danlittle@yahoo.com><br>
<b>Sent:</b> Monday, November 10, 2008 3:02:38 PM<br>
<b>Subject:</b> RE: [Geomoose-users] Refresh Layers</span></p>
<div>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I did a search in all the .js
files, the main config, demos, and menu files and cant find a … </span><span style="color: rgb(99, 36, 35);">function setTimeout ()</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Any thoughts as to where they
are?</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 suppose then I can just call
the function and run the refresh code against the settimeout and set interval
code (somehow)</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Will cross that bridge when I
get to it. For now just cant seem to find the functions….</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">VERY APPRECITED 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: windowtext -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> 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></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">Jay,
<br>
<br>
You'll need to look into setTimeout or setInterval Javascript functions.
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></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";"> </span></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">
<hr align="center" size="1" width="100%">
</span></div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"> Jay Kapalczynski
<jkapalczynski@ci.maple-grove.mn.us><br>
<b>To:</b> Dan Little <danlittle@yahoo.com>;
"geomoose-developers@lists.sourceforge.net"
<geomoose-developers@lists.sourceforge.net>;
"geomoose-users@lists.sourceforge.net"
<geomoose-users@lists.sourceforge.net><br>
<b>Sent:</b> Monday, November 10, 2008 2:28:16 PM<br>
<b>Subject:</b> RE: [Geomoose-users] Refresh Layers</span></p>
<div>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">That works great….but I am
trying to do something else. Hoping you can point me in the correct
direction.</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Was trying to get my hands on the
code and modify it in another file. 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></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">So I would need a loop to run
then stop when the another button was clicked.</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Any thoughts?</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: windowtext -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> 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></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";">Example:<br>
One Layer - Events.triggerEvent('refreshlayer', 'Parcels');<br>
All Layers - Events.triggerEvent('refreshlayers', '');</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";"> </span></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">
<hr align="center" size="1" width="100%">
</span></div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"> Jay Kapalczynski
<jkapalczynski@ci.maple-grove.mn.us><br>
<b>To:</b> "geomoose-developers@lists.sourceforge.net"
<geomoose-developers@lists.sourceforge.net>;
"geomoose-users@lists.sourceforge.net"
<geomoose-users@lists.sourceforge.net><br>
<b>Sent:</b> Monday, November 10, 2008 2:09:48 PM<br>
<b>Subject:</b> [Geomoose-users] Refresh Layers</span></p>
<div>
<p class="MsoNormal">Where is the function that refreshes the layers?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Anyone out there know how I could configure the code the
refresh a specific layer?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </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>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif";"> </span></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>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif";"> </span></p>
</div>
</div></div></div><br>
</body></html>