<?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/"
	>

<channel>
	<title>MyFunnyDev &#187; jquery</title>
	<atom:link href="http://michalkuklis.com/blog/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://michalkuklis.com/blog</link>
	<description>web, coding and beyond</description>
	<lastBuildDate>Fri, 25 Jun 2010 05:51:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Live Query plugin for jquery</title>
		<link>http://michalkuklis.com/blog/2007/12/16/30/</link>
		<comments>http://michalkuklis.com/blog/2007/12/16/30/#comments</comments>
		<pubDate>Sun, 16 Dec 2007 21:12:27 +0000</pubDate>
		<dc:creator>Michał Kuklis</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://michalkuklis.com/blog/?p=30</guid>
		<description><![CDATA[It&#8217;s annoying to rebind events to their targets after Ajax request. You can read more about it here.
In order to fix it you can use  Live Query plugin.
Instead of doing:



$('a').click(dosomething);
$('#htmlElement').load('server.php',function() {
  $('a').click(dosomething);
});



you can now do:



$('a').livequery('click',dosomething);
$('#htmlElement').load('server.php');



]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s annoying to rebind events to their targets after Ajax request. You can read more about it <a href="http://docs.jquery.com/Tutorials:AJAX_and_Events" title="jquery events">here</a>.</p>
<p>In order to fix it you can use  <a href="http://plugins.jquery.com/project/livequery/" title="live query plugin">Live Query plugin</a>.</p>
<p>Instead of doing:</p>
<div class="wp_syntax">
<div class="code">
<pre class="javascript">
$('a').click(dosomething);
$('#htmlElement').load('server.php',function() {
  $('a').click(dosomething);
});
</pre>
</div>
</div>
<p>you can now do:</p>
<div class="wp_syntax">
<div class="code">
<pre class="javascript">
$('a').livequery('click',dosomething);
$('#htmlElement').load('server.php');
</pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://michalkuklis.com/blog/2007/12/16/30/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
