<?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/"
		>
<channel>
	<title>Comments on: jQuery Spy improvements</title>
	<atom:link href="http://michaelshadle.com/2007/10/29/jquery-spy-improvements/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelshadle.com/2007/10/29/jquery-spy-improvements</link>
	<description>&#34;Lazy people are efficient.&#34; - My boss.</description>
	<lastBuildDate>Mon, 30 Apr 2012 14:27:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: mike</title>
		<link>http://michaelshadle.com/2007/10/29/jquery-spy-improvements/comment-page-1#comment-3386</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 10 Mar 2008 09:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshadle.com/2007/10/29/jquery-spy-improvements/#comment-3386</guid>
		<description>Actually it&#039;s been a while since we used this. We did away with that interface a while ago. I am not sure how well this will work but this appears to be the last version we used. Hopefully this points you in some sort of path...
&lt;code&gt;
$(document).ready(function() {     
    // prefill on first load
    $.get(&#039;/data/json.php?f=list&amp;p2=25&amp;r=&#039;+Math.random(), function(data) {
        var jdata = eval(&#039;(&#039;+data+&#039;)&#039;);
        for(i=0; i div:gt(20)&#039;).fadeEachDown(); 
    });      
    // start spy
    $(&#039;#entriesMain&#039;).spy({ &#039;limit&#039;: 25, &#039;fadeInSpeed&#039;: 1400, &#039;timeout&#039;: 15000, &#039;fadeLast&#039;: 5, &#039;ajax&#039;: &#039;/data/json.php?f=list&#039;, &#039;push&#039;: display, &#039;method&#039;: &#039;json&#039;, &#039;isDupe&#039;: isDupe });
});

function myTimestamp() {
    var d = new Date();
    return Math.round(d.getTime() / 1000);
}

function isDupe(l, p) { return (l.entry_id == p.entry_id); }

function display(r, f) {
    var html = &#039;&#039;;
    html += &#039;ID: &#039;+r.entry_id + &#039;&#160;&#039;;
    html += r.entry_title;
    html += r.entry_description;
    html += r.entry_submitted + &#039;&#039;;
    if(f) {
        $(&#039;#entriesMain&#039;).append(html);
    } else {
        $(&#039;#entriesMain&#039;).prepend(html);
    }
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Actually it's been a while since we used this. We did away with that interface a while ago. I am not sure how well this will work but this appears to be the last version we used. Hopefully this points you in some sort of path...<br />
<code><br />
$(document).ready(function() {<br />
    // prefill on first load<br />
    $.get('/data/json.php?f=list&amp;p2=25&amp;r='+Math.random(), function(data) {<br />
        var jdata = eval('('+data+')');<br />
        for(i=0; i div:gt(20)').fadeEachDown();<br />
    });<br />
    // start spy<br />
    $('#entriesMain').spy({ 'limit': 25, 'fadeInSpeed': 1400, 'timeout': 15000, 'fadeLast': 5, 'ajax': '/data/json.php?f=list', 'push': display, 'method': 'json', 'isDupe': isDupe });<br />
});</p>
<p>function myTimestamp() {<br />
    var d = new Date();<br />
    return Math.round(d.getTime() / 1000);<br />
}</p>
<p>function isDupe(l, p) { return (l.entry_id == p.entry_id); }</p>
<p>function display(r, f) {<br />
    var html = '';<br />
    html += 'ID: '+r.entry_id + '&#160;';<br />
    html += r.entry_title;<br />
    html += r.entry_description;<br />
    html += r.entry_submitted + '';<br />
    if(f) {<br />
        $('#entriesMain').append(html);<br />
    } else {<br />
        $('#entriesMain').prepend(html);<br />
    }<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://michaelshadle.com/2007/10/29/jquery-spy-improvements/comment-page-1#comment-3334</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 04 Mar 2008 22:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshadle.com/2007/10/29/jquery-spy-improvements/#comment-3334</guid>
		<description>Hi,

Ive applied the patch, but im not sure how to change the application.
Could you please apply an example of usage?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Ive applied the patch, but im not sure how to change the application.<br />
Could you please apply an example of usage?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

