<?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>David Lano &#187; JQuery</title>
	<atom:link href="http://www.davidlano.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidlano.com</link>
	<description>Riffs on Business, Marketing, Web Development</description>
	<lastBuildDate>Mon, 12 Dec 2011 14:37:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to Make JQuery &amp; Prototype Play Nice</title>
		<link>http://www.davidlano.com/2009/03/31/how-to-make-jquery-prototype-play-nice/</link>
		<comments>http://www.davidlano.com/2009/03/31/how-to-make-jquery-prototype-play-nice/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 12:31:12 +0000</pubDate>
		<dc:creator>David Lano</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[jquery no conflict]]></category>
		<category><![CDATA[jquery prototype]]></category>
		<category><![CDATA[play nice]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://www.davidlano.com/blog/?p=400</guid>
		<description><![CDATA[I&#8217;m sure you&#8217;ve seen some of the sweetness of JQuery and most likely you&#8217;ve used Prototype for dynamic web applications like Lightview, Prototip, etc. However, let&#8217;s say we want to use the two together, on the same page. Problemo! The Problem JQuery uses a &#8220;$&#8221; as a shortcut for &#8220;jQuery&#8221; and Prototype uses &#8220;$&#8221; as [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px; margin-bottom: 7px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.davidlano.com%2F2009%2F03%2F31%2Fhow-to-make-jquery-prototype-play-nice%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.davidlano.com%2F2009%2F03%2F31%2Fhow-to-make-jquery-prototype-play-nice%2F&amp;source=davidlano&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<div class="left_image_chunk">
<div><img src="http://www.davidlano.com/blog/wp-content/uploads/2009/03/jquery-prototype2.jpg" style="margin-top: 3px;" title="JQuery + Prototype" alt="JQuery + Prototype" /></div>
<p>I&#8217;m sure you&#8217;ve seen some of the <a href="http://www.noupe.com/jquery/50-amazing-jquery-examples-part1.html">sweetness</a> of <a href="http://jquery.com/">JQuery</a> and most likely you&#8217;ve used <a href="http://www.prototypejs.org/">Prototype</a> for dynamic web applications like <a href="http://www.nickstakenburg.com/projects/lightview/">Lightview</a>, <a href="http://www.nickstakenburg.com/projects/prototip2/">Prototip</a>, etc.  However, let&#8217;s say we want to use the two together, on the same page.  Problemo!</p>
<h2>The Problem</h2>
<p>JQuery uses a &#8220;$&#8221; as a shortcut for &#8220;jQuery&#8221; and Prototype uses &#8220;$&#8221; as well.  We can&#8217;t have JQuery and Prototype using the same &#8220;$&#8221; namespace.</p>
<h2>The Fix</h2>
<p>Thankfully JQuery has a neat little function called <b>jQuery.noConflict( )</b> which you basically just need to stick at the top of your JQuery file and replace the &#8220;$&#8221; alias with &#8220;jQuery&#8221; for each function.  Example:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">jQuery.<span style="color: #660066;">noConflict</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Do something with jQuery</span>
jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div p&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Do something with another library's $()</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;content&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">display</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'none'</span><span style="color: #339933;">;</span></pre></div></div>

<p>Of course, there are <a href="http://docs.jquery.com/Core/jQuery.noConflict">other ways</a> of solving this issue with jQuery.noConflict( ), but the method above was the most simple and straightforward for me.</p>
<p><i>NOTE:  JQuery doesn&#8217;t get along with <a href="http://mootools.net/">MooTools</a> and <a href="http://yuilibrary.com/">YUI</a> very well either, luckily this can also be solved with the jQuery.noConflict( ) trick.</i></p>
<p>Let me know if you have any questions or run across any other issues while using JQuery and Prototype.  I have a feeling the more popular JQuery becomes, the more and more people will run into this issue.
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.davidlano.com/2009/03/31/how-to-make-jquery-prototype-play-nice/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>JQuery: Eye Candy for Web Developers</title>
		<link>http://www.davidlano.com/2008/03/07/jquery-eye-candy-for-web-developers/</link>
		<comments>http://www.davidlano.com/2008/03/07/jquery-eye-candy-for-web-developers/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 17:43:26 +0000</pubDate>
		<dc:creator>David Lano</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[ToolBox]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[eye candy]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[jquery demos]]></category>
		<category><![CDATA[jquery examples]]></category>
		<category><![CDATA[JQuery eye candy]]></category>

		<guid isPermaLink="false">http://www.davidlano.com/blog/2008/03/07/jquery-eye-candy-for-web-developers/</guid>
		<description><![CDATA[Image Credit: lennyjpg I came across this article over at Web Designer Wall, titled jQuery Tutorials for Designers. Nick does an excellent job explaining how JQuery works and goes into detail on implementing each example. I won&#8217;t attempt to regurgitate Nick&#8217;s beautiful post, but here is a sneak peak at the JQuery Demos.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px; margin-bottom: 7px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.davidlano.com%2F2008%2F03%2F07%2Fjquery-eye-candy-for-web-developers%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.davidlano.com%2F2008%2F03%2F07%2Fjquery-eye-candy-for-web-developers%2F&amp;source=davidlano&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://www.davidlano.com/blog/wp-content/uploads/2008/03/1696540304_b3e2a4ca44.jpg" /><br /><i>Image Credit: <a href="http://www.flickr.com/photos/lennyjpg/1696540304/in/set-72157602619301641/">lennyjpg</a></i></p>
<p>I came across this article over at <a href="http://www.webdesignerwall.com/">Web Designer Wall</a>, titled <a href="http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/">jQuery Tutorials for Designers</a>.</p>
<p>Nick does an excellent job explaining how JQuery works and goes into detail on implementing each example.  I won&#8217;t attempt to regurgitate Nick&#8217;s beautiful post, but here is a sneak peak at the <a href="http://www.webdesignerwall.com/demo/jquery/">JQuery Demos</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidlano.com/2008/03/07/jquery-eye-candy-for-web-developers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

