<?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: Ajax requests when users stop typing</title> <atom:link href="http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/feed/" rel="self" type="application/rss+xml" /><link>http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/</link> <description>web-development</description> <lastBuildDate>Fri, 03 Feb 2012 05:18:27 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Iván Argulo</title><link>http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/comment-page-1/#comment-42497</link> <dc:creator>Iván Argulo</dc:creator> <pubDate>Wed, 08 Jun 2011 17:05:43 +0000</pubDate> <guid
isPermaLink="false">http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/#comment-42497</guid> <description>Old solution to old problems in new projects. Great code!!</description> <content:encoded><![CDATA[<p>Old solution to old problems in new projects. Great code!!</p> ]]></content:encoded> </item> <item><title>By: Dougle</title><link>http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/comment-page-1/#comment-38984</link> <dc:creator>Dougle</dc:creator> <pubDate>Sat, 11 Dec 2010 16:26:29 +0000</pubDate> <guid
isPermaLink="false">http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/#comment-38984</guid> <description>I was implementing something similar in jQuery, but these days i&#039;m finding excuses to use a delay before ajax in most of the UI stuff i do.
I packaged this up into a plugin available &lt;a href=&quot;http://github.com/dougle/jQuery-Ajax-Singleton&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; for jquery that can be used with the normal $.ajax calls.</description> <content:encoded><![CDATA[<p>I was implementing something similar in jQuery, but these days i&#8217;m finding excuses to use a delay before ajax in most of the UI stuff i do.</p><p>I packaged this up into a plugin available <a
href="http://github.com/dougle/jQuery-Ajax-Singleton" rel="nofollow">here</a> for jquery that can be used with the normal $.ajax calls.</p> ]]></content:encoded> </item> <item><title>By: Brian</title><link>http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/comment-page-1/#comment-28095</link> <dc:creator>Brian</dc:creator> <pubDate>Wed, 07 Apr 2010 00:26:08 +0000</pubDate> <guid
isPermaLink="false">http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/#comment-28095</guid> <description>As I smashed my head against the wall for the better part of an hour, I finally landed on the exact answer I needed. Brilliant.</description> <content:encoded><![CDATA[<p>As I smashed my head against the wall for the better part of an hour, I finally landed on the exact answer I needed. Brilliant.</p> ]]></content:encoded> </item> <item><title>By: Secundes</title><link>http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/comment-page-1/#comment-22406</link> <dc:creator>Secundes</dc:creator> <pubDate>Tue, 20 Oct 2009 08:58:38 +0000</pubDate> <guid
isPermaLink="false">http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/#comment-22406</guid> <description>Great, it solves my problem.
Thanks</description> <content:encoded><![CDATA[<p>Great, it solves my problem.<br
/> Thanks</p> ]]></content:encoded> </item> <item><title>By: brad</title><link>http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/comment-page-1/#comment-22291</link> <dc:creator>brad</dc:creator> <pubDate>Wed, 07 Oct 2009 20:12:43 +0000</pubDate> <guid
isPermaLink="false">http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/#comment-22291</guid> <description>I believe the buffer was needed only for a specific version of IE, maybe 6.5, but I don&#039;t recall exactly.  I can&#039;t imagine why adding 100 ms to the timeout callback would cause multiple events to be fired.  What event are you binding your callback to, the keyup?
On a related note, I have found that an additional feature is needed to ensure xhr callbacks are processed in the correct order.  A local counter is needed on the object that increments every time your &quot;interceptKeypress&quot; is fired.  Then when you call the xhr request function, you have to pass the current value of that counter, and then check it in the xhr callback to ensure what is passed in is the same as the current value of the counter.  Without this I was seeing issues where the most recent xhr request would fire, get called back, and then a previously called request would come back afterwards and trump it.</description> <content:encoded><![CDATA[<p>I believe the buffer was needed only for a specific version of IE, maybe 6.5, but I don&#8217;t recall exactly.  I can&#8217;t imagine why adding 100 ms to the timeout callback would cause multiple events to be fired.  What event are you binding your callback to, the keyup?</p><p>On a related note, I have found that an additional feature is needed to ensure xhr callbacks are processed in the correct order.  A local counter is needed on the object that increments every time your &#8220;interceptKeypress&#8221; is fired.  Then when you call the xhr request function, you have to pass the current value of that counter, and then check it in the xhr callback to ensure what is passed in is the same as the current value of the counter.  Without this I was seeing issues where the most recent xhr request would fire, get called back, and then a previously called request would come back afterwards and trump it.</p> ]]></content:encoded> </item> <item><title>By: Joe</title><link>http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/comment-page-1/#comment-22290</link> <dc:creator>Joe</dc:creator> <pubDate>Wed, 07 Oct 2009 20:03:22 +0000</pubDate> <guid
isPermaLink="false">http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/#comment-22290</guid> <description>I&#039;m having much more success without the 100 ms interval on the setTimeout.  Placed an alert() in the sendResponse for testing.  With the buffer, I&#039;m seeing multiple alert fires where I should not, however seems to work fine without that buffer. Any insight?</description> <content:encoded><![CDATA[<p>I&#8217;m having much more success without the 100 ms interval on the setTimeout.  Placed an alert() in the sendResponse for testing.  With the buffer, I&#8217;m seeing multiple alert fires where I should not, however seems to work fine without that buffer. Any insight?</p> ]]></content:encoded> </item> <item><title>By: adamzap</title><link>http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/comment-page-1/#comment-2369</link> <dc:creator>adamzap</dc:creator> <pubDate>Wed, 27 Feb 2008 13:31:34 +0000</pubDate> <guid
isPermaLink="false">http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/#comment-2369</guid> <description>w00t just what I needed thanks</description> <content:encoded><![CDATA[<p>w00t just what I needed thanks</p> ]]></content:encoded> </item> <item><title>By: brad</title><link>http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/comment-page-1/#comment-477</link> <dc:creator>brad</dc:creator> <pubDate>Fri, 30 Nov 2007 20:07:09 +0000</pubDate> <guid
isPermaLink="false">http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/#comment-477</guid> <description>Ah, so it is.  Fixed now, thanks.</description> <content:encoded><![CDATA[<p>Ah, so it is.  Fixed now, thanks.</p> ]]></content:encoded> </item> <item><title>By: ws</title><link>http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/comment-page-1/#comment-475</link> <dc:creator>ws</dc:creator> <pubDate>Fri, 30 Nov 2007 14:55:58 +0000</pubDate> <guid
isPermaLink="false">http://www.selfcontained.us/2007/10/07/ajax-requests-when-users-stop-typing/#comment-475</guid> <description>Thanks for the code!  I&#039;ve been trying to do something like this for a while.
FYI.  there is a small typo in your code.  The second Date().getTime() is typed Date.getTime().
Again.. Thanks for the code.</description> <content:encoded><![CDATA[<p>Thanks for the code!  I&#8217;ve been trying to do something like this for a while.</p><p>FYI.  there is a small typo in your code.  The second Date().getTime() is typed Date.getTime().</p><p>Again.. Thanks for the code.</p> ]]></content:encoded> </item> </channel> </rss>
