<?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>Fri, 03 Feb 2012 05:24:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<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>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-9454</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Mon, 24 Oct 2011 03:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-9454</guid>
		<description>@Chanan:
First, make sure you have the most recent version (1.3); the previous version had a bug that I only found when I was trying to answer your comment (thanks!).
To set the starting date, either set the value of the input before creating the calendar:
&lt;pre&gt;&lt;code&gt;$(&#039;input.date&#039;).val(&#039;10/1/2001&#039;).flexcal();&lt;/code&gt;&lt;/pre&gt;
or use the &lt;code&gt;setDate&lt;/code&gt; function after the calendar is created:
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;$(&#039;input.date&#039;).flexcal().flexcal(&#039;setDate&#039;,&#039;10/1/2011&#039;);&lt;/code&gt;&lt;/pre&gt;
As I write this, I realize that &lt;code&gt;setDate&lt;/code&gt; and the rest of the public API isn&#039;t documented; I&#039;ll try to get to that as soon as possible.
For allowing a range of dates, it was possible in the previous version but kind of complicated, so I created a new option, &lt;code&gt;filter&lt;/code&gt;, that can be set to a function that takes a &lt;code&gt;Date&lt;/code&gt; and returns &lt;code&gt;true&lt;/code&gt; to enable that date and &lt;code&gt;false&lt;/code&gt; to disable it:
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;$(&#039;input.date&#039;).flexcal({
	filter: function(d) {return d &gt;= startDate &amp;&amp; d &lt;= endDate}
});&lt;/code&gt;&lt;/pre&gt;
Hope this helps,
Danny</description>
		<content:encoded><![CDATA[<p>@Chanan:<br />
First, make sure you have the most recent version (1.3); the previous version had a bug that I only found when I was trying to answer your comment (thanks!).<br />
To set the starting date, either set the value of the input before creating the calendar:</p>
<pre><code>$('input.date').val('10/1/2001').flexcal();</code></pre>
<p>or use the <code>setDate</code> function after the calendar is created:</p>
<pre><code class="language-javascript">$('input.date').flexcal().flexcal('setDate','10/1/2011');</code></pre>
<p>As I write this, I realize that <code>setDate</code> and the rest of the public API isn&#8217;t documented; I&#8217;ll try to get to that as soon as possible.<br />
For allowing a range of dates, it was possible in the previous version but kind of complicated, so I created a new option, <code>filter</code>, that can be set to a function that takes a <code>Date</code> and returns <code>true</code> to enable that date and <code>false</code> to disable it:</p>
<pre><code class="language-javascript">$('input.date').flexcal({
	filter: function(d) {return d &gt;= startDate &#038;&#038; d &lt;= endDate}
});</code></pre>
<p>Hope this helps,<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-9393</link>
		<dc:creator>Chanan</dc:creator>
		<pubDate>Sat, 22 Oct 2011 16:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-9393</guid>
		<description>Hi Danny,

I found this a great datepicker, but I looking for a way to set the starting date (the jquery UI datepicker has a `current` property in its settings), or even allow only a range of dates. can you point me out how can this be done?

10x
chanan</description>
		<content:encoded><![CDATA[<p>Hi Danny,</p>
<p>I found this a great datepicker, but I looking for a way to set the starting date (the jquery UI datepicker has a `current` property in its settings), or even allow only a range of dates. can you point me out how can this be done?</p>
<p>10x<br />
chanan</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-9342</link>
		<dc:creator>chanan</dc:creator>
		<pubDate>Fri, 21 Oct 2011 08:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-9342</guid>
		<description>Hi,
I found this plugin very useful, but I could&#039;nt find out how to set the starting date (in the jquery UI there is a `current` option)
Can you give a hint how can I modify this?
10x</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I found this plugin very useful, but I could&#8217;nt find out how to set the starting date (in the jquery UI there is a `current` option)<br />
Can you give a hint how can I modify this?<br />
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-4897</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Fri, 01 Jul 2011 12:04:36 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-4897</guid>
		<description>@Ronny:
That looks right. Can you put up a page with your code and I&#039;ll try to take a look at it?
--Danny</description>
		<content:encoded><![CDATA[<p>@Ronny:<br />
That looks right. Can you put up a page with your code and I&#8217;ll try to take a look at it?<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronny</title>
		<link>http://bililite.nfshost.com/blog/2009/04/03/new-jquery-widget-flexcal/comment-page-1/#comment-4831</link>
		<dc:creator>ronny</dc:creator>
		<pubDate>Tue, 28 Jun 2011 11:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=524#comment-4831</guid>
		<description>still at lost , 
this is my super-basic code :
&lt;code&gt;

&lt;!-- InstanceBegin template=&quot;/Templates/tamplet.dwt&quot; codeOutsideHTMLIsLocked=&quot;false&quot; --&gt;

  
  
  
  
   
   
  
  $(document).ready(function() {
	$(&#039;#date1&#039;).datepicker();
	$(&#039;#date2&#039;).flexcal();
  });
  


Using &lt;code&gt;datepicker&lt;/code&gt;: 

Using &lt;code&gt;flexcal&lt;/code&gt;: 


&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>still at lost ,<br />
this is my super-basic code :<br />
<code></code></p>
<p><!-- InstanceBegin template="/Templates/tamplet.dwt" codeOutsideHTMLIsLocked="false" --></p>
<p>  $(document).ready(function() {<br />
	$('#date1').datepicker();<br />
	$('#date2').flexcal();<br />
  });</p>
<p>Using <code>datepicker</code>: </p>
<p>Using <code>flexcal</code>: </p>
<p></p>
]]></content:encoded>
	</item>
</channel>
</rss>

