<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
	>
<channel>
	<title>Comments on: JQuery PeriodicalUpdater (AJAX long polling/server polling)</title>
	<atom:link href="http://enfranchisedmind.com/blog/posts/jquery-periodicalupdater-ajax-polling/feed/" rel="self" type="application/rss+xml" />
	<link>http://enfranchisedmind.com/blog/posts/jquery-periodicalupdater-ajax-polling/</link>
	<description>programming, politics, &#38; other religious issues</description>
	<lastBuildDate>Wed, 08 Feb 2012 14:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: eventualo</title>
		<link>http://enfranchisedmind.com/blog/posts/jquery-periodicalupdater-ajax-polling/#comment-38179</link>
		<dc:creator>eventualo</dc:creator>
		<pubDate>Tue, 19 Jul 2011 19:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://enfranchisedmind.com/blog/?p=1450#comment-38179</guid>
		<description>Hi, I&#039;d like to add this beautiful plugin in my WP project. I need help to create buttons to pause/restart the update loop. 
&lt;code&gt;
jQuery(&#039;.pause-loop&#039;).live( &quot;click&quot;, function() {
    // pause...
}
jQuery(&#039;.restart-loop&#039;).live( &quot;click&quot;, function() {
    // restart...
}
&lt;/code&gt;
Can you help me showing some code tips?</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;d like to add this beautiful plugin in my WP project. I need help to create buttons to pause/restart the update loop.<br />
<code><br />
jQuery('.pause-loop').live( "click", function() {<br />
    // pause...<br />
}<br />
jQuery('.restart-loop').live( "click", function() {<br />
    // restart...<br />
}<br />
</code><br />
Can you help me showing some code tips?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khalid</title>
		<link>http://enfranchisedmind.com/blog/posts/jquery-periodicalupdater-ajax-polling/#comment-38172</link>
		<dc:creator>khalid</dc:creator>
		<pubDate>Thu, 16 Jun 2011 14:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://enfranchisedmind.com/blog/?p=1450#comment-38172</guid>
		<description>Great work. 
also here you can find the DEMO and pool script here, &lt;a href=&quot;http://www.webfreescripts.com/?p=1380&quot; rel=&quot;nofollow&quot;&gt;http://www.webfreescripts.com/?p=1380&lt;/a&gt; 
its easy and interesting.</description>
		<content:encoded><![CDATA[<p>Great work.<br />
also here you can find the DEMO and pool script here, <a href="http://www.webfreescripts.com/?p=1380" rel="nofollow">http://www.webfreescripts.com/?p=1380</a><br />
its easy and interesting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://enfranchisedmind.com/blog/posts/jquery-periodicalupdater-ajax-polling/#comment-38171</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 10 Jun 2011 04:25:17 +0000</pubDate>
		<guid isPermaLink="false">http://enfranchisedmind.com/blog/?p=1450#comment-38171</guid>
		<description>I got it sorted, but had to change the main function.

Just in case its of any use to anyone,  i did it put a fade in and fade out on either side of the getdata() call

$(&#039;#checking_for_updates&#039;).fadeIn(&quot;slow&quot;);
PeriodicalTimer = setTimeout(getdata, settings.minTimeout);
$(&#039;#checking_for_updates&#039;).delay(2000).fadeOut(&quot;slow&quot;);

There is probably a better way, but this worked.</description>
		<content:encoded><![CDATA[<p>I got it sorted, but had to change the main function.</p>
<p>Just in case its of any use to anyone,  i did it put a fade in and fade out on either side of the getdata() call</p>
<p>$(&#8216;#checking_for_updates&#8217;).fadeIn(&#8220;slow&#8221;);<br />
PeriodicalTimer = setTimeout(getdata, settings.minTimeout);<br />
$(&#8216;#checking_for_updates&#8217;).delay(2000).fadeOut(&#8220;slow&#8221;);</p>
<p>There is probably a better way, but this worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://enfranchisedmind.com/blog/posts/jquery-periodicalupdater-ajax-polling/#comment-38170</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 10 Jun 2011 02:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://enfranchisedmind.com/blog/?p=1450#comment-38170</guid>
		<description>How would you get a loading div to be added before each check cycle.

The plugin works great for retrieving new messages. 

Is there a way to make a &quot;Loading &quot; gif appear or fire some jquery as the checking process fires.

I tried adding it to the data that comes back, but by that time the data is back and the loading is pointless and very short.

something like &quot;Checking for new messages&quot;  is what i want to add and am wondering if its possible from the outside javascript or would i need to change the code within .PeriodicalUpdater()

Thanks</description>
		<content:encoded><![CDATA[<p>How would you get a loading div to be added before each check cycle.</p>
<p>The plugin works great for retrieving new messages. </p>
<p>Is there a way to make a &#8220;Loading &#8221; gif appear or fire some jquery as the checking process fires.</p>
<p>I tried adding it to the data that comes back, but by that time the data is back and the loading is pointless and very short.</p>
<p>something like &#8220;Checking for new messages&#8221;  is what i want to add and am wondering if its possible from the outside javascript or would i need to change the code within .PeriodicalUpdater()</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://enfranchisedmind.com/blog/posts/jquery-periodicalupdater-ajax-polling/#comment-38158</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Wed, 04 May 2011 06:59:13 +0000</pubDate>
		<guid isPermaLink="false">http://enfranchisedmind.com/blog/?p=1450#comment-38158</guid>
		<description>Hello,
I&#039;m French, sorry ;-)

This is just my code...

//  

// With : // http://paulirish.com/2009/jquery-idletimer-plugin // https://github.com/paulirish/jquery-idletimer/
// -&gt; in the body (end page) :
//&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Stop flux&lt;/a&gt; - &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Run flux&lt;/a&gt;
//
// 
// (function($){ // 
//       var timeout = 15000; // 15s inactivity
//        $.idleTimer(timeout);
//    })(jQuery);
// 
//
// In jquery.periodocalupdater. js after line 91 (after var handle) :
	
		$(&#039;a.stop&#039;).livequery(&quot;click&quot;, function(e){	
		handle.stop();
		$(&#039;.su&#039;).empty(); // &lt;- 
		$(&#039;.su&#039;).append(&#039;OFF&#039;);
		});		

		$(&#039;a.run&#039;).livequery(&quot;click&quot;, function(e){	
		handle.restart();
		$(&#039;.su&#039;).empty(); 
		$(&#039;.su&#039;).append(&#039;ON&#039;);	
		});
		
		$(document).bind(&quot;idle.idleTimer&quot;, function(){
		    handle.stop();
			$(&#039;.su&#039;).empty(); 
			$(&#039;.su&#039;).append(&#039;OFF&#039;);	
			// launch(); // message alert... 
        });
        
        $(document).bind(&quot;active.idleTimer&quot;, function(){      
		handle.restart();
		$(&#039;.su&#039;).empty(); 
		$(&#039;.su&#039;).append(&#039;ON&#039;);	
        });
// end insert</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I&#8217;m French, sorry ;-)</p>
<p>This is just my code&#8230;</p>
<p>//  </p>
<p>// With : // <a href="http://paulirish.com/2009/jquery-idletimer-plugin" rel="nofollow">http://paulirish.com/2009/jquery-idletimer-plugin</a> // <a href="https://github.com/paulirish/jquery-idletimer/" rel="nofollow">https://github.com/paulirish/jquery-idletimer/</a><br />
// -&gt; in the body (end page) :<br />
//<a href="#" rel="nofollow">Stop flux</a> &#8211; <a href="#" rel="nofollow">Run flux</a><br />
//<br />
//<br />
// (function($){ //<br />
//       var timeout = 15000; // 15s inactivity<br />
//        $.idleTimer(timeout);<br />
//    })(jQuery);<br />
//<br />
//<br />
// In jquery.periodocalupdater. js after line 91 (after var handle) :</p>
<p>		$(&#8216;a.stop&#8217;).livequery(&#8220;click&#8221;, function(e){<br />
		handle.stop();<br />
		$(&#8216;.su&#8217;).empty(); // &lt;-<br />
		$(&#8216;.su&#8217;).append(&#8216;OFF&#8217;);<br />
		});		</p>
<p>		$(&#8216;a.run&#8217;).livequery(&#8220;click&#8221;, function(e){<br />
		handle.restart();<br />
		$(&#8216;.su&#8217;).empty();<br />
		$(&#8216;.su&#8217;).append(&#8216;ON&#8217;);<br />
		});</p>
<p>		$(document).bind(&#8220;idle.idleTimer&#8221;, function(){<br />
		    handle.stop();<br />
			$(&#8216;.su&#8217;).empty();<br />
			$(&#8216;.su&#8217;).append(&#8216;OFF&#8217;);<br />
			// launch(); // message alert&#8230;<br />
        });</p>
<p>        $(document).bind(&#8220;active.idleTimer&#8221;, function(){<br />
		handle.restart();<br />
		$(&#8216;.su&#8217;).empty();<br />
		$(&#8216;.su&#8217;).append(&#8216;ON&#8217;);<br />
        });<br />
// end insert</p>
]]></content:encoded>
	</item>
</channel>
</rss>

