<?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>Harvest Media - Web and Mobile Development</title>
	<atom:link href="http://harvest-media.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://harvest-media.com</link>
	<description>web and mobile development</description>
	<lastBuildDate>Fri, 20 Apr 2012 12:39:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Including 2 versions of jQuery</title>
		<link>http://harvest-media.com/?p=1</link>
		<comments>http://harvest-media.com/?p=1#comments</comments>
		<pubDate>Sun, 25 Mar 2012 17:47:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://harvest-media.com/?p=1</guid>
		<description><![CDATA[After reading the jQuery code, i think it is simpler than you think. First important thing: when you load your jQuery.x.x.js, it will overwrite the existing $ and jQuery vars&#8230; BUT it keeps a backup copy of them (in _$ and _jQuery). Calling noConflict(true) you restore the situation as it was before your js inclusion! [...]]]></description>
			<content:encoded><![CDATA[<p>After reading the jQuery code, i think it is simpler than you think.</p>
<p>First important thing: when you load your jQuery.x.x.js, it will overwrite the existing $ and jQuery vars&#8230; BUT it keeps a backup copy of them (in _$ and _jQuery).<br />
Calling noConflict(true) you restore the situation as it was before your js inclusion!</p>
<p>noConflict() gives you the running instance (the last loaded), so you can work with you version in this way</p>
<p>Resuming:<br />
- original page loads his &#8220;jquery.versionX.js&#8221;<br />
- $ and jQuery belong to versionX<br />
- you call your &#8220;jquery.versionY.js&#8221;<br />
- now $ and jQuery belong to versionY, plus _$ and _jQuery that belongs to versionX<br />
- var my_jQuery = jQuery.noConflict(true);<br />
- now $ and jQuery belong to versionX, _$ and _jQuery are probably null, and my_jQuery is versionY</p>
<p>Have a nice day <img src='http://harvest-media.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://harvest-media.com/?feed=rss2&#038;p=1</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

