<?xml version="1.0"?><!-- 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>MachForm Community Forums Topic: close calendar popup on click?</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: close calendar popup on click?</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 01:39:30 +0000</pubDate>

<item>
<title>bsimpson on "close calendar popup on click?"</title>
<link>https://www.machform.com/forums/topic/close-calendar-popup-on-click#post-4065</link>
<pubDate>Tue, 23 Dec 2008 23:41:27 +0000</pubDate>
<dc:creator>bsimpson</dc:creator>
<guid isPermaLink="false">4065@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you, that worked great, It is a little slow on IE6 (stupid 8 year old browser) but does what i need it to do. You guys rock at end user support
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "close calendar popup on click?"</title>
<link>https://www.machform.com/forums/topic/close-calendar-popup-on-click#post-4055</link>
<pubDate>Sun, 21 Dec 2008 08:53:34 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">4055@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Since it call &#34;selectDate&#34; function, &#34;singleClick&#34; property will not work. You could make replacement for &#34;selectDate&#34; function in &#34;view-functions.php&#34;. Try to replace those java script code (around line 401 ~ 411) with this one :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
	Calendar.setup({
	inputField	 : &#38;quot;element_{$element-&#38;gt;id}_3&#38;quot;,
	baseField    : &#38;quot;element_{$element-&#38;gt;id}&#38;quot;,
	displayArea  : &#38;quot;calendar_{$element-&#38;gt;id}&#38;quot;,
	button		 : &#38;quot;cal_img_{$element-&#38;gt;id}&#38;quot;,
	ifFormat	 : &#38;quot;%B %e, %Y&#38;quot;,
	onSelect	 : selectDateNew
	});

	function selectDateNew(cal) {
		var p = cal.params;
		var update = (cal.dateClicked &#124;&#124; p.electric);
		year = p.inputField.id;

		day = p.baseField + &#38;#39;_2&#38;#39;;
		month = p.baseField + &#38;#39;_1&#38;#39;;

		document.getElementById(month).value = cal.date.print(&#38;#39;%m&#38;#39;);
		document.getElementById(day).value = cal.date.print(&#38;#39;%e&#38;#39;);
		document.getElementById(year).value = cal.date.print(&#38;#39;%Y&#38;#39;);

		if (calendar.dateClicked) {
		 calendar.callCloseHandler(); // this calls &#38;quot;onClose&#38;quot; (see above)
		}

	}

&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>bsimpson on "close calendar popup on click?"</title>
<link>https://www.machform.com/forums/topic/close-calendar-popup-on-click#post-4052</link>
<pubDate>Fri, 19 Dec 2008 22:19:49 +0000</pubDate>
<dc:creator>bsimpson</dc:creator>
<guid isPermaLink="false">4052@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Need help setting it so that when a calendar date is chosen via the popup calendar picker, that the user does not have to double click or click outside the calendar to close it, but that the calendar will close right after you select the date. &#60;/p&#62;
&#60;p&#62;I looked into the dhtml calendar  authors site (http://www.dynarch.com/demos/jscalendar/doc/html/reference.html#node_toc_node_sec_Temp_1)&#60;br /&#62;
and saw that there was an option to have singleClick :True, so i added that code to the &#34;view_functions.php&#34; (so that every time the calendar would display a date it would add that code&#60;br /&#62;
	&#60;code&#62;	script type=&#34;text/javascript&#34;&#60;br /&#62;
			Calendar.setup({&#60;br /&#62;
			inputField	 : &#34;element_{$element-&#38;gt;id}_3&#34;,&#60;br /&#62;
			baseField    : &#34;element_{$element-&#38;gt;id}&#34;,&#60;br /&#62;
			displayArea  : &#34;calendar_{$element-&#38;gt;id}&#34;,&#60;br /&#62;
			button		 : &#34;cal_img_{$element-&#38;gt;id}&#34;,&#60;br /&#62;
			ifFormat	 : &#34;%B %e, %Y&#34;,&#60;br /&#62;
			onSelect	 : selectDate,&#60;br /&#62;
			&#60;strong&#62;singleClick :&#34; true&#34;&#60;/strong&#62;&#60;br /&#62;
			});&#60;br /&#62;
		/script&#60;/code&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
