<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: New jQuery Widget: flexcal</title>
	<atom:link href="http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/feed/" rel="self" type="application/rss+xml" />
	<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/</link>
	<description>Thoughts on web design and programming from a very occasional volunteer webmaster</description>
	<lastBuildDate>Thu, 10 May 2012 10:36:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Adrian</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-21627</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Tue, 01 May 2012 22:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-21627</guid>
		<description>I think I answered my own question just now... I meant multiple inputs with the same name. Not ID, sorry. But I believe I figured out how to make this work. Sorry to have wasted your time there. :)

Thanks!</description>
		<content:encoded><![CDATA[<p>I think I answered my own question just now&#8230; I meant multiple inputs with the same name. Not ID, sorry. But I believe I figured out how to make this work. Sorry to have wasted your time there. <img src='http://bililite.nfshost.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-21626</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Tue, 01 May 2012 21:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-21626</guid>
		<description>On the second one I did just that... I typed it in.. *sigh* 

</description>
		<content:encoded><![CDATA[<p>On the second one I did just that&#8230; I typed it in.. *sigh* </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-21625</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Tue, 01 May 2012 21:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-21625</guid>
		<description>@Adrian:
I don&#039;t understand what you are trying to do without the sample code. Don&#039;t try to format it or anything, just type it in.
--Danny</description>
		<content:encoded><![CDATA[<p>@Adrian:<br />
I don&#8217;t understand what you are trying to do without the sample code. Don&#8217;t try to format it or anything, just type it in.<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-21624</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Tue, 01 May 2012 21:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-21624</guid>
		<description>noticed the stuff in the code blocks didn&#039;t work. heheh. sorry. Trying again:

</description>
		<content:encoded><![CDATA[<p>noticed the stuff in the code blocks didn&#8217;t work. heheh. sorry. Trying again:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-21623</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Tue, 01 May 2012 21:37:10 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-21623</guid>
		<description>Hello Danny,

Excellent work here, and write-up. I&#039;m looking to see if there is a way to make the calendar appear for multiple inputs with the same id/name. For example, I&#039;m working on a project where the application is required to display the initial form with one calendar input. Then the user can duplicate the input within the form, to have a second set of, say, computer inventory information. Thus, the form data is passed to the server as an array. 
Can I have something like:
[code]


[/code]
Then when the user clicks on the two input fields, two separate calendars appear. And the date would go through as an array as expected (ex: date=01/01/2010,02/02/2012).

I tried the datepicker supplied by JQuery&#039;s core ui, but couldn&#039;t get it to work (or maybe I&#039;m not understanding JQuery enough to make it generate a new calendar for each input with matching id/name). So, I&#039;m checking you JQuery plug-in to see if it can do what I&#039;m looking for. 

If your plug-in can do this, would you be so kind to provide a mini example, or explain how I can make this work?

Thank you!
Adrian</description>
		<content:encoded><![CDATA[<p>Hello Danny,</p>
<p>Excellent work here, and write-up. I&#8217;m looking to see if there is a way to make the calendar appear for multiple inputs with the same id/name. For example, I&#8217;m working on a project where the application is required to display the initial form with one calendar input. Then the user can duplicate the input within the form, to have a second set of, say, computer inventory information. Thus, the form data is passed to the server as an array.<br />
Can I have something like:<br />
[code]</p>
<p>[/code]<br />
Then when the user clicks on the two input fields, two separate calendars appear. And the date would go through as an array as expected (ex: date=01/01/2010,02/02/2012).</p>
<p>I tried the datepicker supplied by JQuery&#8217;s core ui, but couldn&#8217;t get it to work (or maybe I&#8217;m not understanding JQuery enough to make it generate a new calendar for each input with matching id/name). So, I&#8217;m checking you JQuery plug-in to see if it can do what I&#8217;m looking for. </p>
<p>If your plug-in can do this, would you be so kind to provide a mini example, or explain how I can make this work?</p>
<p>Thank you!<br />
Adrian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-9690</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Fri, 28 Oct 2011 18:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-9690</guid>
		<description>@Chanan:
See the section on &quot;date formatting&quot; in the post. You can subclass the widget to use the jQuery UI datepicker formatting code, or just override the format method to return d.getDay()+&#039;/&#039;+d.getMonth()+&#039;/&#039;+d.getFullYear()
--Danny</description>
		<content:encoded><![CDATA[<p>@Chanan:<br />
See the section on &#8220;date formatting&#8221; in the post. You can subclass the widget to use the jQuery UI datepicker formatting code, or just override the format method to return d.getDay()+&#8217;/'+d.getMonth()+&#8217;/'+d.getFullYear()<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chanan</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-9663</link>
		<dc:creator>Chanan</dc:creator>
		<pubDate>Fri, 28 Oct 2011 09:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-9663</guid>
		<description>@Danny:

One more question, Is there any easy way to format date format (&#039;d/m/y&#039; instead of &#039;m/d/y&#039; for exampe)?

10x</description>
		<content:encoded><![CDATA[<p>@Danny:</p>
<p>One more question, Is there any easy way to format date format (&#8216;d/m/y&#8217; instead of &#8216;m/d/y&#8217; for exampe)?</p>
<p>10x</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-9660</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Fri, 28 Oct 2011 09:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-9660</guid>
		<description>@Chanan:
Arrgh! That&#039;s what I get for not testing thoroughly. It should work now. Please let me know.
Danny</description>
		<content:encoded><![CDATA[<p>@Chanan:<br />
Arrgh! That&#8217;s what I get for not testing thoroughly. It should work now. Please let me know.<br />
Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chanan</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-9656</link>
		<dc:creator>Chanan</dc:creator>
		<pubDate>Fri, 28 Oct 2011 08:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-9656</guid>
		<description>@Danny:

Thanks for adding this new current property to the options.
I just tried using it but it does&#039;nt really work for me. I might miss some thing, but I&#039;ve looked into the code and it looks as the _setOption function is never called, so also if I set current hardcoded in the default options it does&#039;nt work.</description>
		<content:encoded><![CDATA[<p>@Danny:</p>
<p>Thanks for adding this new current property to the options.<br />
I just tried using it but it does&#8217;nt really work for me. I might miss some thing, but I&#8217;ve looked into the code and it looks as the _setOption function is never called, so also if I set current hardcoded in the default options it does&#8217;nt work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-9575</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Wed, 26 Oct 2011 19:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-9575</guid>
		<description>@Chanan:
The big change for version 2.0 (which you inspired) is the addition of the &#039;current&#039; option, so now
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;$(&#039;input.date&#039;).flexcal({current:  &#039;10/1/2011&#039;});&lt;/code&gt;&lt;/pre&gt;
works.
However, the value of the input element overrides that, so you can change the option after the fact to force it:
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;$(&#039;input.date&#039;).flexcal().flexcal(&#039;option&#039;,&#039;current&#039;,&#039;10/1/2011&#039;);&lt;/code&gt;&lt;/pre&gt;.
&lt;code&gt;setDate&lt;/code&gt; no longer works.
--Danny</description>
		<content:encoded><![CDATA[<p>@Chanan:<br />
The big change for version 2.0 (which you inspired) is the addition of the &#8216;current&#8217; option, so now</p>
<pre><code class="language-javascript">$('input.date').flexcal({current:  '10/1/2011'});</code></pre>
<p>works.<br />
However, the value of the input element overrides that, so you can change the option after the fact to force it:</p>
<pre><code class="language-javascript">$('input.date').flexcal().flexcal('option','current','10/1/2011');</code></pre>
<p>.<br />
<code>setDate</code> no longer works.<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
</channel>
</rss>

