<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: jQuery conflict with Nextgen</title>
		<link>https://legacy.forums.gravityhelp.com/topic/jquery-conflict-with-nextgen</link>
		<description>Gravity Support Forums Topic: jQuery conflict with Nextgen</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 20:34:15 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/jquery-conflict-with-nextgen" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "jQuery conflict with Nextgen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-conflict-with-nextgen#post-33542</link>
			<pubDate>Thu, 25 Aug 2011 10:28:49 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33542@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm glad you got it sorted out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nordisk Center for Glas on "jQuery conflict with Nextgen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-conflict-with-nextgen#post-33525</link>
			<pubDate>Thu, 25 Aug 2011 07:01:41 +0000</pubDate>
			<dc:creator>Nordisk Center for Glas</dc:creator>
			<guid isPermaLink="false">33525@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I planning on embedding gravity forms on other pages too, and I like the fact, that the script also worked with the search functions/page!&#60;/p&#62;
&#60;p&#62;Unfortunately the revised script didn't work, but thanks.&#60;/p&#62;
&#60;p&#62;EDIT: It works now!&#60;/p&#62;
&#60;p&#62;I compared the code generated with and without wp_head(), and found that all kind of Nextgen code was there and these three lines:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;#39;text/javascript&#38;#39; src=&#38;#39;http://ncfg.dk/wp-includes/js/l10n.js?ver=20101110&#38;#39;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;#39;text/javascript&#38;#39; src=&#38;#39;http://ncfg.dk/wp-includes/js/jquery/jquery.js?ver=1.6.1&#38;#39;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;#39;text/javascript&#38;#39; src=&#38;#39;http://ncfg.dk/wp-includes/js/jquery/jquery.form.js?ver=2.73&#38;#39;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;which seemed important :)&#60;/p&#62;
&#60;p&#62;so I replaced wp_head() with those three lines, and now both the script and Nextgen behaves.&#60;/p&#62;
&#60;p&#62;Thanks for your repsonse though. Tip top support.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "jQuery conflict with Nextgen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-conflict-with-nextgen#post-33438</link>
			<pubDate>Wed, 24 Aug 2011 14:55:25 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33438@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually, I think the problem is that you were prepared to use jQuery.noConflict as $j, but you never did.  All references to jQuery after the line that begins &#60;strong&#62;$var $j = &#60;/strong&#62; should be changed to $j.  Try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
var $j = jQuery.noConflict();
$j(document).ready(function() {
	$j.fn.cleardefault = function() {
	return this.focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = &#38;quot;&#38;quot;;
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
};
$j(&#38;quot;.clearit input, .clearit textarea, #insearchbox input.field&#38;quot;).cleardefault();
});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "jQuery conflict with Nextgen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-conflict-with-nextgen#post-33436</link>
			<pubDate>Wed, 24 Aug 2011 14:49:24 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33436@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ahh, so you are including the clearit script on all pages, when it's really only needed on the one page?  Are there other pages that require the script?  We can make the code specific to that one page, or figure out what the conflict it.  It will be pretty easy to include the clearit script on just the one page if that solution will work for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nordisk Center for Glas on "jQuery conflict with Nextgen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-conflict-with-nextgen#post-33423</link>
			<pubDate>Wed, 24 Aug 2011 13:18:23 +0000</pubDate>
			<dc:creator>Nordisk Center for Glas</dc:creator>
			<guid isPermaLink="false">33423@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes! All the pages with nextgen galleries has Javascript errors (ie front page). I am using image browser functionality in Nextgen plugin, but the wp_head somehow turn on a thickbox effect.&#60;br /&#62;
Obviously I know nothing about jQuery, but maybe it's possible to make the wp_head() specific to the &#34;clearit&#34; script?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "jQuery conflict with Nextgen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-conflict-with-nextgen#post-33413</link>
			<pubDate>Wed, 24 Aug 2011 11:50:07 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33413@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I found the form where you're using the jQuery here:&#60;br /&#62;
&#60;a href=&#34;http://ncfg.dk/tilmeld&#34; rel=&#34;nofollow&#34;&#62;http://ncfg.dk/tilmeld&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It seems to work fine, and there are no JavaScript errors.  Is there another page where there ARE JavaScript errors or layout issues due to the addition of this script?  Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nordisk Center for Glas on "jQuery conflict with Nextgen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-conflict-with-nextgen#post-33397</link>
			<pubDate>Wed, 24 Aug 2011 08:02:55 +0000</pubDate>
			<dc:creator>Nordisk Center for Glas</dc:creator>
			<guid isPermaLink="false">33397@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes: &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.ncfg.dk&#34; rel=&#34;nofollow&#34;&#62;http://www.ncfg.dk&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "jQuery conflict with Nextgen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-conflict-with-nextgen#post-33325</link>
			<pubDate>Tue, 23 Aug 2011 15:59:21 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33325@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you post a link to your site where this conflict is visible?  Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nordisk Center for Glas on "jQuery conflict with Nextgen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-conflict-with-nextgen#post-33307</link>
			<pubDate>Tue, 23 Aug 2011 12:13:13 +0000</pubDate>
			<dc:creator>Nordisk Center for Glas</dc:creator>
			<guid isPermaLink="false">33307@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello.&#60;br /&#62;
Just discovered this small script:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;which exactly what I'm after, BUT it conflicts with the Nextgen gallery, getting som strange layout issues. I put the &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php wp_enqueue_script(&#38;quot;jquery&#38;quot;); ?&#38;gt;
&#38;lt;?php wp_head(); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;in my header before the script.&#60;br /&#62;
I found some posts recommending a no conflict mode, but know absolutely 0 about jQuery.&#60;/p&#62;
&#60;p&#62;thanks in advance.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
