<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: JQuery compatibility</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 20:10:10 +0000</pubDate>

<item>
<title>72quadrat on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-8027</link>
<pubDate>Mon, 23 Nov 2009 21:20:36 +0000</pubDate>
<dc:creator>72quadrat</dc:creator>
<guid isPermaLink="false">8027@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;O.K. I've a smilar Problem. Now i have a working Function in my functions.php. But it just works on FF, Safari and such but not on IE7 and IE6. I think it's because of the doubled jQuery.?!?&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
function simplyread_head() {&#60;br /&#62;
	wp_deregister_script('jquery');&#60;br /&#62;
	wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2');&#60;br /&#62;
	//wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js');&#60;br /&#62;
	//wp_register_script('jquery', '/wp-content/themes/hoenerdruck_v3/js/jquery.easing.1.3.js');&#60;br /&#62;
	//wp_register_script('jquery', '/wp-content/themes/hoenerdruck_v3/js/jquery.coda-slider-2.0.js');&#60;br /&#62;
	wp_enqueue_script('jquery');&#60;br /&#62;
	$content .= &#34;\t&#34;;&#60;br /&#62;
	$content .= '&#38;lt;script type=&#34;text/javascript&#34; src=&#34;/wp-content/themes/hoenerdruck_v3/js/jquery-1.3.2.min.js&#34;&#38;gt;&#38;lt;/script&#38;gt;';&#60;br /&#62;
	$content .= &#34;\n\t&#34;;&#60;br /&#62;
	$content .= '&#38;lt;script type=&#34;text/javascript&#34; src=&#34;/wp-content/themes/hoenerdruck_v3/js/jquery.easing.1.3.js&#34;&#38;gt;&#38;lt;/script&#38;gt;';&#60;br /&#62;
	$content .= &#34;\n\t&#34;;&#60;br /&#62;
	$content .= '&#38;lt;script type=&#34;text/javascript&#34; src=&#34;/wp-content/themes/hoenerdruck_v3/js/jquery.coda-slider-2.0.js&#34;&#38;gt;&#38;lt;/script&#38;gt;';&#60;/p&#62;
&#60;p&#62;	$content .= &#34;\n\t&#34;;&#60;br /&#62;
	$content .= '&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;';&#60;br /&#62;
	$content .= &#34;\n\t\t&#34;;&#60;br /&#62;
	$content .= '$().ready(function() {';&#60;br /&#62;
	$content .= &#34;\n\t\t&#34;;&#60;br /&#62;
	$content .= '$(\'#coda-slider-1\').codaSlider({';&#60;br /&#62;
	$content .= &#34;\n\t\t&#34;;&#60;br /&#62;
	$content .= 'dynamicArrows: false,';&#60;br /&#62;
	$content .= &#34;\n\t\t&#34;;&#60;br /&#62;
	$content .= 'autoHeightEaseDuration: 500,';&#60;br /&#62;
	$content .= &#34;\n\t\t&#34;;&#60;br /&#62;
	$content .= 'slideEaseDuration: 800,';&#60;br /&#62;
	$content .= &#34;\n\t\t&#34;;&#60;br /&#62;
	$content .= '});';&#60;br /&#62;
	$content .= &#34;\n\t\t&#34;;&#60;br /&#62;
	$content .= '});';&#60;br /&#62;
	$content .= &#34;\n\t&#34;;&#60;br /&#62;
	$content .= '&#38;lt;/script&#38;gt;';&#60;/p&#62;
&#60;p&#62;	echo $content;&#60;br /&#62;
};&#60;br /&#62;
add_action('wp_head','simplyread_head',1);&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-4556</link>
<pubDate>Mon, 15 Jun 2009 16:17:27 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">4556@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Take a look here: &#60;a href=&#34;http://themeshaper.com/forums/topic/wordpress-28&#34;&#62;WordPress 2.8&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>hylopu on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-4539</link>
<pubDate>Sun, 14 Jun 2009 18:55:44 +0000</pubDate>
<dc:creator>hylopu</dc:creator>
<guid isPermaLink="false">4539@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Guys - just an FYI for anyone finding this thread - I had a problem with posting content after I upgraded to WP 2.8 using the swap_jquery() function posted in this thread. &#60;/p&#62;
&#60;p&#62;Any content typed into the text area would disappear on saving, and I could no longer switch between the html and visual tabs (stuck in place). There may have been some other admin UI problems elsewhere, but those were the obvious ones. &#60;/p&#62;
&#60;p&#62;Once I removed swap_jquery() from my child theme's functions.php, normal functionality returned. Is WP 2.8 reliant on a different version of jquery or something?
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2665</link>
<pubDate>Sat, 28 Mar 2009 20:13:17 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2665@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey Danny,&#60;/p&#62;
&#60;p&#62;yes .. this code will run with WordPress &#38;gt;= 2.8&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>dannydamnboy on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2664</link>
<pubDate>Sat, 28 Mar 2009 19:53:42 +0000</pubDate>
<dc:creator>dannydamnboy</dc:creator>
<guid isPermaLink="false">2664@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey Chris, let me understand well:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function swap_jquery() {
	wp_deregister_script(&#38;#39;jquery&#38;#39;);
	wp_register_script(&#38;#39;jquery&#38;#39;, (&#38;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&#38;quot;), false, &#38;#39;1.3.2&#38;#39;);
	wp_enqueue_script(&#38;#39;jquery&#38;#39;);
}
add_action(&#38;#39;init&#38;#39;, &#38;#39;swap_jquery&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;does will work in 2.8 too? am I wrong?
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2437</link>
<pubDate>Fri, 20 Mar 2009 14:41:45 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2437@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey Bjoern,&#60;/p&#62;
&#60;p&#62;now I got it. The problem is caused by the differences between WP 2.71 and WP 2.8.&#60;/p&#62;
&#60;p&#62;In WP 2.71 the function wp_register_script will register the script and drop it into wp_head without any priority. That's why your function child_head is working (using priority 1).&#60;/p&#62;
&#60;p&#62;In WP 2.8 the function wp_register_script will only register the script. You still need the function wp_enqueue_script as a loader. And this loader uses priority 1 to put it into the first place of wp_head.&#60;/p&#62;
&#60;p&#62;And the missing function wp_enqueue_script (WP 2.71) doesn't create any error.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>demetris on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2416</link>
<pubDate>Thu, 19 Mar 2009 14:48:46 +0000</pubDate>
<dc:creator>demetris</dc:creator>
<guid isPermaLink="false">2416@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@ Anthrax:  Sorry, Anthrax, I have no idea why this happens.  But I use code exactly like this (deregister and then register) with Sandbox for the plugin WP Slimbox 2, and it seems to work fine.
&#60;/p&#62;</description>
</item>
<item>
<title>Anthrax on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2413</link>
<pubDate>Thu, 19 Mar 2009 13:08:50 +0000</pubDate>
<dc:creator>Anthrax</dc:creator>
<guid isPermaLink="false">2413@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@demetris... thanks for the hint but the Problem is:&#60;/p&#62;
&#60;p&#62;Dont work:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function swap_jquery() {

wp_deregister_script(&#38;#39;jquery&#38;#39;);

wp_register_script(&#38;#39;jquery&#38;#39;,&#38;#39;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&#38;#39;);
wp_enqueue_script(&#38;#39;jquery&#38;#39;);
wp_register_script(&#38;#39;scrolltop&#38;#39;, get_bloginfo(&#38;#39;stylesheet_directory&#38;#39;) . &#38;#39;/js/jquery.scroll.pack.js&#38;#39;, array(&#38;#39;jquery&#38;#39;),&#38;#39;&#38;#39;);
wp_enqueue_script(&#38;#39;scrolltop&#38;#39;);

}
add_action(&#38;#39;init&#38;#39;, &#38;#39;swap_jquery&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Work:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function child_head() { ?&#38;gt;

&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;&#38;lt;?php bloginfo(&#38;#39;stylesheet_directory&#38;#39;);?&#38;gt;/js/jquery.scroll.pack.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;

&#38;lt;?php
}
add_action(&#38;#39;wp_head&#38;#39;, &#38;#39;child_head&#38;#39;,1);   //THIS WORK !!!!!!!!!!!&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>demetris on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2412</link>
<pubDate>Thu, 19 Mar 2009 12:45:42 +0000</pubDate>
<dc:creator>demetris</dc:creator>
<guid isPermaLink="false">2412@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Google, nice JS libraries, and a free CDN:  that’s a combination to fall in love with. :-D&#60;/p&#62;
&#60;p&#62;And also an easy way to serve gzipped javascript if you are on shared hosting (since gzippig is rare in shared-hosting environments).&#60;/p&#62;
&#60;p&#62;BTW, in the Google API you don’t have to specify the full version if you don’t need to. E.g., you can write:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;wp_register_script(&#38;#39;jquery&#38;#39;,&#38;#39;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&#38;#39;)&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and google will serve the latest version available at the specified version level, that is, currently, 1.3.2.&#60;/p&#62;
&#60;p&#62;In the same way, you can specify just &#60;code&#62;1.2&#60;/code&#62;, and Google will serve 1.2.6 or whatever is the latest full version currently.
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2404</link>
<pubDate>Thu, 19 Mar 2009 07:53:51 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2404@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey Bjoern,&#60;/p&#62;
&#60;p&#62;this is something you could try:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function swap_jquery() {
	wp_deregister_script(&#38;#39;jquery&#38;#39;);
	wp_register_script(&#38;#39;jquery&#38;#39;, (&#38;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&#38;quot;), false, &#38;#39;1.3.2&#38;#39;);
	wp_enqueue_script(&#38;#39;jquery&#38;#39;);
}
add_action(&#38;#39;init&#38;#39;, &#38;#39;swap_jquery&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Unfortunately both code snippets are running here without any problem, so it's pretty hard for me to find out what's happening on your system.&#60;br /&#62;
The last code snippet might be better because it's using a more official way to trigger the function at the right time.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>Anthrax on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2403</link>
<pubDate>Thu, 19 Mar 2009 06:02:23 +0000</pubDate>
<dc:creator>Anthrax</dc:creator>
<guid isPermaLink="false">2403@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Good Morning Chris,&#60;/p&#62;
&#60;p&#62;thanks for the hint that they don't need a extra function.&#60;br /&#62;
I tryied to copy your code in the functions.php without function but only the &#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;`//echo '&#38;lt;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js&#34;&#38;gt;&#38;lt;/script&#38;gt;';&#60;br /&#62;
};`&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;works ...
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2382</link>
<pubDate>Wed, 18 Mar 2009 19:21:55 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2382@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Just put these line into your functions.php ..&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;wp_deregister_script(&#38;#39;jquery&#38;#39;);
wp_register_script(&#38;#39;jquery&#38;#39;, (&#38;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&#38;quot;), false, &#38;#39;1.3.2&#38;#39;);
wp_enqueue_script(&#38;#39;jquery&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;.. no need to put it into a function.&#60;/p&#62;
&#60;p&#62;1st line will de-register the standard jQuery coming with WP.&#60;br /&#62;
2nd line will register jQuery 1.3.2 with WP&#60;br /&#62;
3rd line will enqueue jQuery into a loader script that will hook the script call into wp_head.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>Anthrax on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2371</link>
<pubDate>Wed, 18 Mar 2009 15:03:38 +0000</pubDate>
<dc:creator>Anthrax</dc:creator>
<guid isPermaLink="false">2371@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;in tons of articles i read i didn't see this one ...but a lot of similar to this.&#60;/p&#62;
&#60;p&#62;This doesn't work:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function simplyread_head() {
wp_deregister_script(&#38;#39;jquery&#38;#39;);
wp_register_script(&#38;#39;jquery&#38;#39;, &#38;#39;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&#38;#39;, false, &#38;#39;1.3.2&#38;#39;);
wp_enqueue_script(&#38;#39;jquery&#38;#39;);

//echo &#38;#39;&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#38;#39;;
};
add_action(&#38;#39;wp_head&#38;#39;,&#38;#39;simplyread_head&#38;#39;,1);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but if i insert the 'echo' it works fine.&#60;/p&#62;
&#60;p&#62;#there is no Thematic-Hook that works with it. I try 'thematic_before', 'thematic_aboveheader' and 'thematic_header'.
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2370</link>
<pubDate>Wed, 18 Mar 2009 14:29:02 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2370@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey Bjoern,&#60;/p&#62;
&#60;p&#62;have you seen this article: &#60;a href=&#34;http://blog.fusi0n.org/coding/make-your-wordpress-plugins-use-a-different-version-of-a-bundled-javascript-library&#34;&#62;Make your Wordpress plugins use a different version of a bundled JavaScript library&#60;/a&#62;?&#60;/p&#62;
&#60;p&#62;Let me know if this works, haven't tested it.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>Anthrax on "JQuery compatibility"</title>
<link>http://themeshaper.com/forums/topic/jquery-compatibility#post-2368</link>
<pubDate>Wed, 18 Mar 2009 14:16:47 +0000</pubDate>
<dc:creator>Anthrax</dc:creator>
<guid isPermaLink="false">2368@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm totally confused about jquery and how it is to use in different versions?&#60;/p&#62;
&#60;p&#62;Wordpress insert:&#60;br /&#62;
&#60;code&#62;&#38;lt;script type=&#38;#39;text/javascript&#38;#39; src=&#38;#39;http://localhost/wordpress/wp-includes/js/jquery/jquery.js?ver=1.2.6&#38;#39;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62; in the head.&#60;/p&#62;
&#60;p&#62;I actually need the Version 1.3.2 of Jquery. If i link it to a separate jqery132.js in my plugin folder all works fine.&#60;/p&#62;
&#60;p&#62;But if i replace the jqery.js in the wp-includes\js\jquery with the new Version it doesn't work?&#60;/p&#62;
&#60;p&#62;What is the best way to use a newer Version of JQuery without touching the original jquery.js in Wordpress?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
