<?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: Datepicker jQuery undefined error</title>
		<link>https://legacy.forums.gravityhelp.com/topic/datepicker-jquery-undefined-error</link>
		<description>Gravity Support Forums Topic: Datepicker jQuery undefined error</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:06:40 +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/datepicker-jquery-undefined-error" rel="self" type="application/rss+xml" />

		<item>
			<title>divydovy on "Datepicker jQuery undefined error"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/datepicker-jquery-undefined-error#post-14559</link>
			<pubDate>Thu, 16 Dec 2010 11:34:27 +0000</pubDate>
			<dc:creator>divydovy</dc:creator>
			<guid isPermaLink="false">14559@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Hoping someone can help. I'm using a datepicker in my forms (sorry, site not live yet).&#60;/p&#62;
&#60;p&#62;I've added some custom jQuery UI config stuff to skip weekends, holidays, etc, but am getting an error on non-datepicker-containing pages because it's looking for jQuery.datepicker.NoWeekends. That's just not loaded on pages where there is no datepicker, so it kicks out an undefined error.&#60;/p&#62;
&#60;p&#62;I've tried testing if the datepicker function exists, but that didn't work - I'm guessing that might be because the jquery ui bits are loaded by AJAX so aren't in the DOM when the document.ready functions run.&#60;/p&#62;
&#60;p&#62;I know this is a little wide of being strictly a GF issue, but would really appreciate any pointers as to how I can detect when I need to load my custom JS code, so that I can beat this error.&#60;/p&#62;
&#60;p&#62;Thanks in advance,&#60;/p&#62;
&#60;p&#62;divydovy
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
