<?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>Nakunakifi &#187; MooTools</title>
	<atom:link href="http://www.nakunakifi.com/category/mootools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nakunakifi.com</link>
	<description>More inane ramblings (as if there wasn't enough on the interweb thingy already)</description>
	<lastBuildDate>Sun, 28 Jun 2009 17:42:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to use jQuery and MooTools Together</title>
		<link>http://www.nakunakifi.com/2009/02/how-to-use-jquery-and-mootools-together/</link>
		<comments>http://www.nakunakifi.com/2009/02/how-to-use-jquery-and-mootools-together/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 15:10:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.nakunakifi.com/?p=237</guid>
		<description><![CDATA[Recently I was working on an adopted project for a client which already utilised the MooTools javascript library. The additional development I was responsible for required the jQuery library. These two javascript libraries work great individually but you can run into problems when you try and combine the two. This problem caused me some head [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was working on an adopted project for a client which already utilised the MooTools javascript library. The additional development I was responsible for required the jQuery library. These two javascript libraries work great individually but you can run into problems when you try and combine the two. This problem caused me some head scratching so I thought I would share the solution with you.</p>
<p>Before:</p>
<pre>
&nbsp;&nbsp;$.ready(function(){
&nbsp;&nbsp;&nbsp;&nbsp;$(&#039;select#numThumbs&#039;).change(function(){
&nbsp;&nbsp;&nbsp;&nbsp;document.gallery.action = &quot;&lt;?php echo base_url(); ?&gt;index.php/gallery/updateThumbs&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;document.gallery.submit();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;
&nbsp;&nbsp;&nbsp;&nbsp;});
&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;
</pre>
<p>After: This is where jQuery.noConflict(); comes to the rescue!</p>
<pre>
jQuery.noConflict();
&nbsp;&nbsp;jQuery().ready(function(){
&nbsp;&nbsp;&nbsp;&nbsp;jQuery(&#039;select#numThumbs&#039;).change(function(){
&nbsp;&nbsp;&nbsp;&nbsp;document.gallery.action = &quot;&lt;?php echo base_url(); ?&gt;index.php/gallery/updateThumbs&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;document.gallery.submit();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;});
&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.nakunakifi.com/2009/02/how-to-use-jquery-and-mootools-together/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
