<?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 for sholsinger.com</title>
	<atom:link href="http://sholsinger.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://sholsinger.com</link>
	<description>Stephen Holsinger&#039;s blog about the web, OS X, Linux, CSS, PHP, and more</description>
	<lastBuildDate>Tue, 17 Jan 2012 13:32:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Updated Classic ASP TextMate Bundle by evpozdniakov</title>
		<link>http://sholsinger.com/archive/2011/08/updated-classic-asp-textmate-bundle/comment-page-1/#comment-1272</link>
		<dc:creator>evpozdniakov</dc:creator>
		<pubDate>Tue, 17 Jan 2012 13:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://sholsinger.com/?p=413#comment-1272</guid>
		<description>thank you!</description>
		<content:encoded><![CDATA[<p>thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Prevent jQuery.live() Handlers From Firing Multiple Times by Stephen</title>
		<link>http://sholsinger.com/archive/2011/08/prevent-jquery-live-handlers-from-firing-multiple-times/comment-page-1/#comment-1176</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Thu, 03 Nov 2011 23:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://sholsinger.com/?p=405#comment-1176</guid>
		<description>@Dave I believe that may be exactly what happened in my case. Thanks for your contribution.</description>
		<content:encoded><![CDATA[<p>@Dave I believe that may be exactly what happened in my case. Thanks for your contribution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Prevent jQuery.live() Handlers From Firing Multiple Times by Dave</title>
		<link>http://sholsinger.com/archive/2011/08/prevent-jquery-live-handlers-from-firing-multiple-times/comment-page-1/#comment-1175</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 03 Nov 2011 23:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://sholsinger.com/?p=405#comment-1175</guid>
		<description>Another solution to the root problem is to make sure you don&#039;t have any old AJAX-loaded pages lying around in your DOM by adding this JS code:

$(document).bind(&#039;pagechange&#039;, function(){
	$(&#039;.ui-page:not(.ui-page-active)&#039;).remove();
});

This fixed a problem for me where jquery mobile was loading the same page twice in the DOM (even though I had the data-url set) because the first time I loaded the page I didn&#039;t have any query params and the second time I did. So jQM treated the second load as a new page, but of course it had all the same DOM elements which meant tons of duplicate IDs in the DOM.

Hope this helps!

Dave</description>
		<content:encoded><![CDATA[<p>Another solution to the root problem is to make sure you don&#8217;t have any old AJAX-loaded pages lying around in your DOM by adding this JS code:</p>
<p>$(document).bind(&#8216;pagechange&#8217;, function(){<br />
	$(&#8216;.ui-page:not(.ui-page-active)&#8217;).remove();<br />
});</p>
<p>This fixed a problem for me where jquery mobile was loading the same page twice in the DOM (even though I had the data-url set) because the first time I loaded the page I didn&#8217;t have any query params and the second time I did. So jQM treated the second load as a new page, but of course it had all the same DOM elements which meant tons of duplicate IDs in the DOM.</p>
<p>Hope this helps!</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Prevent jQuery.live() Handlers From Firing Multiple Times by raystrach</title>
		<link>http://sholsinger.com/archive/2011/08/prevent-jquery-live-handlers-from-firing-multiple-times/comment-page-1/#comment-1173</link>
		<dc:creator>raystrach</dc:creator>
		<pubDate>Fri, 28 Oct 2011 23:48:34 +0000</pubDate>
		<guid isPermaLink="false">http://sholsinger.com/?p=405#comment-1173</guid>
		<description>i call it genius!!

thanks aimup and sholsinger.</description>
		<content:encoded><![CDATA[<p>i call it genius!!</p>
<p>thanks aimup and sholsinger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Prevent jQuery.live() Handlers From Firing Multiple Times by AimUp</title>
		<link>http://sholsinger.com/archive/2011/08/prevent-jquery-live-handlers-from-firing-multiple-times/comment-page-1/#comment-1169</link>
		<dc:creator>AimUp</dc:creator>
		<pubDate>Fri, 21 Oct 2011 21:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://sholsinger.com/?p=405#comment-1169</guid>
		<description>Nice post Sholsinger. 
I was looking for this solution for a while. 

I also found that if you .die() before you .live (or .undelegate() before you .delegate ), the multiple bindings are avoided all together. 

for example: 

$(&#039;selector&#039;).die();
$(&#039;selector&#039;).live(&#039;event&#039;, myLiveEventHandler);

So to answer your question - I guess I have time for that ;).

Cheers</description>
		<content:encoded><![CDATA[<p>Nice post Sholsinger.<br />
I was looking for this solution for a while. </p>
<p>I also found that if you .die() before you .live (or .undelegate() before you .delegate ), the multiple bindings are avoided all together. </p>
<p>for example: </p>
<p>$(&#8216;selector&#8217;).die();<br />
$(&#8216;selector&#8217;).live(&#8216;event&#8217;, myLiveEventHandler);</p>
<p>So to answer your question &#8211; I guess I have time for that ;).</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>

