<?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: Inline jQuery datePicker and Rails</title>
	<atom:link href="http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/</link>
	<description>Ruby on Rails web application design, development and consulting</description>
	<lastBuildDate>Tue, 31 Aug 2010 21:37:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: confucius</title>
		<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/#comment-35</link>
		<dc:creator>confucius</dc:creator>
		<pubDate>Sun, 25 Jul 2010 14:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=16#comment-35</guid>
		<description>You can also use this with formtastic:
http://blog.brzezinka.eu/webmaster-tips/ruby/ruby-on-rails-formtastic-jquery-ui-datepicker/comment-page-1#comment-48</description>
		<content:encoded><![CDATA[<p>You can also use this with formtastic:<br />
<a href="http://blog.brzezinka.eu/webmaster-tips/ruby/ruby-on-rails-formtastic-jquery-ui-datepicker/comment-page-1#comment-48" rel="nofollow">http://blog.brzezinka.eu/webmaster-tips/ruby/ruby-on-rails-formtastic-jquery-ui-datepicker/comment-page-1#comment-48</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aka sing</title>
		<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/#comment-34</link>
		<dc:creator>aka sing</dc:creator>
		<pubDate>Fri, 25 Sep 2009 09:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=16#comment-34</guid>
		<description>Hi Guys,
  I have one query regarding the date picker. When I click on the inline calender which is already one selected date present,to pick a date, after selecting the new date when I do cancel, next time when I open this calender once again, it shows me the newly selected date, which I dont want. When I am doing cancel it should show me old selected date</description>
		<content:encoded><![CDATA[<p>Hi Guys,<br />
  I have one query regarding the date picker. When I click on the inline calender which is already one selected date present,to pick a date, after selecting the new date when I do cancel, next time when I open this calender once again, it shows me the newly selected date, which I dont want. When I am doing cancel it should show me old selected date</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Ultimation</title>
		<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/#comment-33</link>
		<dc:creator>The Ultimation</dc:creator>
		<pubDate>Tue, 04 Aug 2009 20:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=16#comment-33</guid>
		<description>I dunno about you, but I tried this and it didnt work. I figured out that the datepicker.js also requires the date.js library from here: http://code.google.com/p/jqueryjs/source/browse/trunk/plugins/methods/date.js</description>
		<content:encoded><![CDATA[<p>I dunno about you, but I tried this and it didnt work. I figured out that the datepicker.js also requires the date.js library from here: <a href="http://code.google.com/p/jqueryjs/source/browse/trunk/plugins/methods/date.js" rel="nofollow">http://code.google.com/p/jqueryjs/source/browse/trunk/plugins/methods/date.js</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luvi</title>
		<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/#comment-32</link>
		<dc:creator>Luvi</dc:creator>
		<pubDate>Wed, 14 Jan 2009 08:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=16#comment-32</guid>
		<description>I have the same problem with sushil, but I haven&#039;t found the solution yet. Please helping. Thx!</description>
		<content:encoded><![CDATA[<p>I have the same problem with sushil, but I haven&#8217;t found the solution yet. Please helping. Thx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sushil</title>
		<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/#comment-31</link>
		<dc:creator>sushil</dc:creator>
		<pubDate>Wed, 24 Dec 2008 15:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=16#comment-31</guid>
		<description>Hey i guyz i need your help,
I have a text field and the inline date picker whenever i click on the date in the datepicker it gets populated as expected, the datepicker and the text field are in a pop up window, now here is the problem i want the inline datepicker to select date which is in the text field (the value to the text field is provided by its parent window) but currently the inline datepicker selects the current days date whenever the pop up window is launched and yes i tried the attribute &#039;dateText&#039; but its of no help this applies only for the dialog datepicker.
Any help is appreciated
Thanx!!!</description>
		<content:encoded><![CDATA[<p>Hey i guyz i need your help,<br />
I have a text field and the inline date picker whenever i click on the date in the datepicker it gets populated as expected, the datepicker and the text field are in a pop up window, now here is the problem i want the inline datepicker to select date which is in the text field (the value to the text field is provided by its parent window) but currently the inline datepicker selects the current days date whenever the pop up window is launched and yes i tried the attribute &#8216;dateText&#8217; but its of no help this applies only for the dialog datepicker.<br />
Any help is appreciated<br />
Thanx!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AppeampClaGe</title>
		<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/#comment-30</link>
		<dc:creator>AppeampClaGe</dc:creator>
		<pubDate>Sun, 10 Aug 2008 16:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=16#comment-30</guid>
		<description>Thanks !</description>
		<content:encoded><![CDATA[<p>Thanks !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/#comment-29</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 23 Jul 2008 15:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=16#comment-29</guid>
		<description>If you mean that you want to set the start date of the datepicker, to not allow the user to pick a date earlier than the start date, then you just use the startDate attribute as follows:


  $(&#039;#date-picker&#039;).datePicker({inline:true, startDate: &#039;2008-01-01&#039;})
  .bind(
         &#039;dateSelected&#039;,
         function(e, selectedDate, $td)
         {
           $(&#039;#event_occurred_on&#039;).val(selectedDate.asString());
         }
         );


If you want to set the default date of the hidden text field to today, do:
$(&#039;#event_occurred_on&#039;).val(new Date().asString());</description>
		<content:encoded><![CDATA[<p>If you mean that you want to set the start date of the datepicker, to not allow the user to pick a date earlier than the start date, then you just use the startDate attribute as follows:</p>
<p>  $(&#8216;#date-picker&#8217;).datePicker({inline:true, startDate: &#8217;2008-01-01&#8242;})<br />
  .bind(<br />
         &#8216;dateSelected&#8217;,<br />
         function(e, selectedDate, $td)<br />
         {<br />
           $(&#8216;#event_occurred_on&#8217;).val(selectedDate.asString());<br />
         }<br />
         );</p>
<p>If you want to set the default date of the hidden text field to today, do:<br />
$(&#8216;#event_occurred_on&#8217;).val(new Date().asString());</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natthew</title>
		<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/#comment-28</link>
		<dc:creator>Natthew</dc:creator>
		<pubDate>Wed, 23 Jul 2008 15:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=16#comment-28</guid>
		<description>I found a solution, but I can&#039;t seem to post anything with js in it. Basically I used &quot;month&quot; and &quot;year&quot; options in the datePicker function to set the correct starting day and month, and than used jquery each function to go through every td .current-month and check its text() value against the day in question. Once it finds it, it triggers its click event.</description>
		<content:encoded><![CDATA[<p>I found a solution, but I can&#8217;t seem to post anything with js in it. Basically I used &#8220;month&#8221; and &#8220;year&#8221; options in the datePicker function to set the correct starting day and month, and than used jquery each function to go through every td .current-month and check its text() value against the day in question. Once it finds it, it triggers its click event.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natthew</title>
		<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/#comment-27</link>
		<dc:creator>Natthew</dc:creator>
		<pubDate>Wed, 23 Jul 2008 15:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=16#comment-27</guid>
		<description>I got it working. First starting datepicker to display the correct month:

[code]
$(&#039;#eventDate&#039;).datePicker({inline:true,startDate:&#039;2006-01-01&#039;,month:js_month;?&gt;,year:js_year?&gt;})
[/code]

then triggering click on the correct day:

[code]
$.each($(&quot;td .current-month&quot;), function(){
					if($(this).text() == js_day;?&gt;){
						//alert($(this).text());
						//alert($(this));
						$(this).click();
					}
				});
[/code]</description>
		<content:encoded><![CDATA[<p>I got it working. First starting datepicker to display the correct month:</p>
<p>[code]<br />
$('#eventDate').datePicker({inline:true,startDate:'2006-01-01',month:js_month;?&gt;,year:js_year?&gt;})<br />
[/code]</p>
<p>then triggering click on the correct day:</p>
<p>[code]<br />
$.each($("td .current-month"), function(){<br />
					if($(this).text() == js_day;?&gt;){<br />
						//alert($(this).text());<br />
						//alert($(this));<br />
						$(this).click();<br />
					}<br />
				});<br />
[/code]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natthew</title>
		<link>http://www.justinbritten.com/work/2008/06/inline-jquery-datepicker-and-rails/#comment-26</link>
		<dc:creator>Natthew</dc:creator>
		<pubDate>Wed, 23 Jul 2008 15:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=16#comment-26</guid>
		<description>I got it working:
(I am using PHP)
Here is how I initiate the datepicker:
$(&#039;#eventDate&#039;).datePicker({inline:true,startDate:&#039;2006-01-01&#039;,month:js_month;?&gt;,year:js_year?&gt;})

Which displays the appropriate month. Then I select the correct date:

$.each($(&quot;td .current-month&quot;), function(){
					if($(this).text() == js_day;?&gt;){
						//alert($(this).text());
						//alert($(this));
						$(this).click();
					}
				});</description>
		<content:encoded><![CDATA[<p>I got it working:<br />
(I am using PHP)<br />
Here is how I initiate the datepicker:<br />
$(&#8216;#eventDate&#8217;).datePicker({inline:true,startDate:&#8217;2006-01-01&#8242;,month:js_month;?&gt;,year:js_year?&gt;})</p>
<p>Which displays the appropriate month. Then I select the correct date:</p>
<p>$.each($(&#8220;td .current-month&#8221;), function(){<br />
					if($(this).text() == js_day;?&gt;){<br />
						//alert($(this).text());<br />
						//alert($(this));<br />
						$(this).click();<br />
					}<br />
				});</p>
]]></content:encoded>
	</item>
</channel>
</rss>
