<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Can Has Biz? &#187; code</title>
	<atom:link href="http://canhas.biz/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://canhas.biz</link>
	<description>internets robots and games oh my</description>
	<lastBuildDate>Sat, 26 Jun 2010 14:13:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.4" -->
		<copyright>Copyright &#xA9; 2010 Can Has Biz? </copyright>
		<managingEditor>info@canhas.biz ()</managingEditor>
		<webMaster>info@canhas.biz ()</webMaster>
		<category>posts</category>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>Just another WordPress weblog</itunes:summary>
		<itunes:author></itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name></itunes:name>
			<itunes:email>info@canhas.biz</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://canhas.biz/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://canhas.biz/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>Can Has Biz?</title>
			<link>http://canhas.biz</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>jquery.poll &#8211; a periodic polling plugin for jquery.</title>
		<link>http://canhas.biz/2010/01/10/jquery-poll/</link>
		<comments>http://canhas.biz/2010/01/10/jquery-poll/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 19:10:45 +0000</pubDate>
		<dc:creator>mindlace</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://canhas.biz/?p=45</guid>
		<description><![CDATA[I needed to poll the server for another project we&#8217;re working on (to be announced soon). I started off using the PeriodicalUpdater from enfranchised mind, but I ran into some limitations that were problematic enough that I implemented a new version from scratch. The problem that made me re-implement was that I was polling for [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to poll the server for another project we&#8217;re working on (to be announced soon). I started off using the <a href="http://enfranchisedmind.com/blog/posts/jquery-periodicalupdater-ajax-polling/">PeriodicalUpdater from enfranchised mind</a>, but I ran into some limitations that were problematic enough that I implemented a new version from scratch.</p>
<p>The problem that made me re-implement was that I was polling for new posts, and if the user made a new post I wanted the wait between poll attempts to go back to the minimum.</p>
<p>The main improvements of this version over the enfranchised mind version are:</p>
<ul>
<li>Multiple active polls</li>
<li>Ability to modify the ajax settings after the poll has started</li>
<li>Can make a one-time change to the current polling interval.</li>
</ul>
<p>You can download or contribute from the <a href="https://launchpad.net/jquery.poll">project page</a>.</p>
<h4>Usage:</h4>
<pre class="brush:javascript">//All poll options are optional.
var pollopts = {
  //A random name will be assigned if you don't assign one
  name: 'name-of-poll',
  //minimum wait between calls in msec
  min_wait: 6000, // default: 1000
  //maximum wait between calls in msec
  max_wait: 12000, // default: 30000
  // amount to multiply the wait by if the data is unchanged.
  wait_multiplier: 4, // default: 2
  // log poll events to console.log
  doLog: false, // default true
  // A function that overrides the default calculation
  // for how to change the wait if nothing has changed.
  // Should return an integer
  adjustWait: function(xhr, textStatus, current_wait) { ... }, .
};
// simplest way to start polling.
// ajaxopts are defined as per
// http://docs.jquery.com/Ajax/jQuery.ajax#toptions
var mypoll = $.poll(ajaxopts);
// start polling with custom poll options
var mypoll = $.poll(ajaxopts,pollopts);
// get a poll object, but don't start polling
var mypoll = $.poll(ajaxopts,pollopts,true);
// can also do $.poll(ajaxopts,null,true);
// stop the poll
mypoll.stop = true;
// make a one-time change to the poll wait interval
mypoll.setWait(500);
// change the ajax options for the live poll
mypoll.setAjaxOptions(ajaxopts);</pre>
]]></content:encoded>
			<wfw:commentRss>http://canhas.biz/2010/01/10/jquery-poll/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
