<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Building Browsergames - Latest Comments in Using the &amp;#8220;on-view&amp;#8221; method instead of cron</title><link>http://bbgames.disqus.com/</link><description></description><language>en</language><lastBuildDate>Mon, 17 Nov 2008 00:32:59 -0000</lastBuildDate><item><title>Re: Using the &amp;#8220;on-view&amp;#8221; method instead of cron</title><link>http://buildingbrowsergames.com/2008/07/18/using-the-on-view-method-instead-of-cron/#comment-3853275</link><description>One could use a simple JavaScript timer or AJAX call to fire the server side CRON or serious of functions.&lt;br&gt;&lt;br&gt;I think this may depend on what your purpose for having the cron job is to begin with. For instance, to refresh player stats a simple AJAX call could do the trick, if you want to move mobiles around then you probably do want something that is handled on the server.&lt;br&gt;&lt;br&gt;In .NET one could initialize a timer in the application start event and have that handle mobiles movement, etc. The only problem there is that if the application stops, which it can in IIS 6, then your timer stops. Of course if players are actively using your site your application won’t shutdown but it is still something to be aware of.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">FHIQ</dc:creator><pubDate>Mon, 17 Nov 2008 00:32:59 -0000</pubDate></item></channel></rss>