<?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 &#8216;delay&#8217; plugin</title>
	<atom:link href="http://james.padolsey.com/javascript/jquery-delay-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.padolsey.com/javascript/jquery-delay-plugin/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 02 Feb 2012 18:03:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Sergey</title>
		<link>http://james.padolsey.com/javascript/jquery-delay-plugin/comment-page-1/#comment-22297</link>
		<dc:creator>Sergey</dc:creator>
		<pubDate>Thu, 15 Oct 2009 10:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=414#comment-22297</guid>
		<description>confirm. not working in FF. any solution ?</description>
		<content:encoded><![CDATA[<p>confirm. not working in FF. any solution ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://james.padolsey.com/javascript/jquery-delay-plugin/comment-page-1/#comment-21626</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 05 Oct 2009 13:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=414#comment-21626</guid>
		<description>Doesn&#039;t work with the latest version of firefox unfortunately</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t work with the latest version of firefox unfortunately</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ubermajestix</title>
		<link>http://james.padolsey.com/javascript/jquery-delay-plugin/comment-page-1/#comment-21241</link>
		<dc:creator>ubermajestix</dc:creator>
		<pubDate>Tue, 29 Sep 2009 02:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=414#comment-21241</guid>
		<description>Thanks for the nice little plugin! Great documentation too.</description>
		<content:encoded><![CDATA[<p>Thanks for the nice little plugin! Great documentation too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JSD</title>
		<link>http://james.padolsey.com/javascript/jquery-delay-plugin/comment-page-1/#comment-18367</link>
		<dc:creator>JSD</dc:creator>
		<pubDate>Sun, 16 Aug 2009 20:29:49 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=414#comment-18367</guid>
		<description>here&#039;s a question..

say you have the delay inside a mouseleave event. how do you clear the delay from being triggered on a mouseenter event? as in, say you have a delay on mouseleave and then mouseenter the div again but with the way the plugin is setup now... it still hides it..</description>
		<content:encoded><![CDATA[<p>here&#8217;s a question..</p>
<p>say you have the delay inside a mouseleave event. how do you clear the delay from being triggered on a mouseenter event? as in, say you have a delay on mouseleave and then mouseenter the div again but with the way the plugin is setup now&#8230; it still hides it..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Moguel</title>
		<link>http://james.padolsey.com/javascript/jquery-delay-plugin/comment-page-1/#comment-15536</link>
		<dc:creator>Chris Moguel</dc:creator>
		<pubDate>Thu, 02 Jul 2009 23:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=414#comment-15536</guid>
		<description>Works Perfectly! Great Job. Just what i was looking for.</description>
		<content:encoded><![CDATA[<p>Works Perfectly! Great Job. Just what i was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Frosty @WPCult</title>
		<link>http://james.padolsey.com/javascript/jquery-delay-plugin/comment-page-1/#comment-11912</link>
		<dc:creator>The Frosty @WPCult</dc:creator>
		<pubDate>Fri, 15 May 2009 19:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=414#comment-11912</guid>
		<description>Sweet, just what I was looking for. Will put a link in my source code to an upcoming WordPress theme release.</description>
		<content:encoded><![CDATA[<p>Sweet, just what I was looking for. Will put a link in my source code to an upcoming WordPress theme release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanbor</title>
		<link>http://james.padolsey.com/javascript/jquery-delay-plugin/comment-page-1/#comment-7436</link>
		<dc:creator>Sanbor</dc:creator>
		<pubDate>Mon, 09 Mar 2009 13:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=414#comment-7436</guid>
		<description>James, this plugin is very useful, but i find a serious bug, but may it&#039;s a problem of jQuery.
I have a empty #notice div to put messages inside.
I have links at the left of checkboxes to edit each element of the list.
&lt;a title=&quot;Edit&quot; href=&quot;http://localhost/app/edit/8&quot;&gt;
So each link without js works to edit each element.
If JS is on, when i click these link select the checbox of the element asignated on his href.

I have another links (with the same class .action) to edit all the selected checboxes.
If are no checboxes selected, shows an alert.
&lt;pre lang=&quot;javascript&quot;&gt;
$(&quot;a.action&quot;).click(function() {
	var id = /[0-9]+$/.exec(this.href);
	var action = /edit&#124;remove/.exec(this.href)[0];
	if (id != null)
		$(&quot;#item-selected-&quot; + id[0]).attr(&#039;checked&#039;,true);
		
	if (id == null &amp;&amp; $(&quot;:checkbox&quot;).is(&#039;:checked&#039;) == false)
	{
		$(&#039;#notice&#039;).hide(&#039;fast&#039;).html(&#039;Alert!&#039;).show(&#039;slow&#039;).delay(5000).hide(&#039;slow&#039;);
		return false;
	}
}
&lt;/pre&gt;
Well, the problem is that when the alert meesage still visible (before the end of the delay), the another links don&#039;t work well. It&#039;s like the variable id isn&#039;t assignated.
I think that is because jQuery is not asynchronous and if the delay code don&#039;t end, can&#039;t run the another code.
Sorry for my english, and thanks for your time!</description>
		<content:encoded><![CDATA[<p>James, this plugin is very useful, but i find a serious bug, but may it&#8217;s a problem of jQuery.<br />
I have a empty #notice div to put messages inside.<br />
I have links at the left of checkboxes to edit each element of the list.<br />
&lt;a title=&#8221;Edit&#8221; href=&#8221;http://localhost/app/edit/8&#8243;&gt;<br />
So each link without js works to edit each element.<br />
If JS is on, when i click these link select the checbox of the element asignated on his href.</p>
<p>I have another links (with the same class .action) to edit all the selected checboxes.<br />
If are no checboxes selected, shows an alert.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span class="br0">&#40;</span><span class="st0">&quot;a.action&quot;</span><span class="br0">&#41;</span>.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
	<span class="kw2">var</span> id <span class="sy0">=</span> <span class="co2">/[0-9]+$/</span>.<span class="me1">exec</span><span class="br0">&#40;</span><span class="kw1">this</span>.<span class="me1">href</span><span class="br0">&#41;</span><span class="sy0">;</span>
	<span class="kw2">var</span> action <span class="sy0">=</span> <span class="co2">/edit|remove/</span>.<span class="me1">exec</span><span class="br0">&#40;</span><span class="kw1">this</span>.<span class="me1">href</span><span class="br0">&#41;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">;</span>
	<span class="kw1">if</span> <span class="br0">&#40;</span>id <span class="sy0">!=</span> <span class="kw2">null</span><span class="br0">&#41;</span>
		$<span class="br0">&#40;</span><span class="st0">&quot;#item-selected-&quot;</span> <span class="sy0">+</span> id<span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span>.<span class="me1">attr</span><span class="br0">&#40;</span><span class="st0">'checked'</span><span class="sy0">,</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
	<span class="kw1">if</span> <span class="br0">&#40;</span>id <span class="sy0">==</span> <span class="kw2">null</span> <span class="sy0">&amp;&amp;</span> $<span class="br0">&#40;</span><span class="st0">&quot;:checkbox&quot;</span><span class="br0">&#41;</span>.<span class="kw1">is</span><span class="br0">&#40;</span><span class="st0">':checked'</span><span class="br0">&#41;</span> <span class="sy0">==</span> <span class="kw2">false</span><span class="br0">&#41;</span>
	<span class="br0">&#123;</span>
		$<span class="br0">&#40;</span><span class="st0">'#notice'</span><span class="br0">&#41;</span>.<span class="me1">hide</span><span class="br0">&#40;</span><span class="st0">'fast'</span><span class="br0">&#41;</span>.<span class="me1">html</span><span class="br0">&#40;</span><span class="st0">'Alert!'</span><span class="br0">&#41;</span>.<span class="me1">show</span><span class="br0">&#40;</span><span class="st0">'slow'</span><span class="br0">&#41;</span>.<span class="me1">delay</span><span class="br0">&#40;</span><span class="nu0">5000</span><span class="br0">&#41;</span>.<span class="me1">hide</span><span class="br0">&#40;</span><span class="st0">'slow'</span><span class="br0">&#41;</span><span class="sy0">;</span>
		<span class="kw1">return</span> <span class="kw2">false</span><span class="sy0">;</span>
	<span class="br0">&#125;</span>
<span class="br0">&#125;</span></pre></div></div>

<p>Well, the problem is that when the alert meesage still visible (before the end of the delay), the another links don&#8217;t work well. It&#8217;s like the variable id isn&#8217;t assignated.<br />
I think that is because jQuery is not asynchronous and if the delay code don&#8217;t end, can&#8217;t run the another code.<br />
Sorry for my english, and thanks for your time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Byrne</title>
		<link>http://james.padolsey.com/javascript/jquery-delay-plugin/comment-page-1/#comment-5450</link>
		<dc:creator>Evan Byrne</dc:creator>
		<pubDate>Mon, 16 Feb 2009 19:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=414#comment-5450</guid>
		<description>Hey, Mike. I was surprised when I saw your comment in my mailbox. Actually I wasn&#039;t aware that my plugin didn&#039;t work with jQuery 1.3, I just haven&#039;t tried to use it on it yet.

I should probably refer users over here for Jame&#039;s updated version.</description>
		<content:encoded><![CDATA[<p>Hey, Mike. I was surprised when I saw your comment in my mailbox. Actually I wasn&#8217;t aware that my plugin didn&#8217;t work with jQuery 1.3, I just haven&#8217;t tried to use it on it yet.</p>
<p>I should probably refer users over here for Jame&#8217;s updated version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://james.padolsey.com/javascript/jquery-delay-plugin/comment-page-1/#comment-5448</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 16 Feb 2009 19:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=414#comment-5448</guid>
		<description>Thank you very much! Nice work.
P.S. Some time ago I&#039;ve used a delay plugin from EvanBot.com, but with jQuery 1.3 it doesn&#039;t work.</description>
		<content:encoded><![CDATA[<p>Thank you very much! Nice work.<br />
P.S. Some time ago I&#8217;ve used a delay plugin from EvanBot.com, but with jQuery 1.3 it doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MaLiang</title>
		<link>http://james.padolsey.com/javascript/jquery-delay-plugin/comment-page-1/#comment-4288</link>
		<dc:creator>MaLiang</dc:creator>
		<pubDate>Wed, 04 Feb 2009 09:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=414#comment-4288</guid>
		<description>Oh, Thanks!</description>
		<content:encoded><![CDATA[<p>Oh, Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

