<?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: Put the Clear Button Back in Datepicker</title>
	<atom:link href="http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/</link>
	<description>headcheese and mukluks</description>
	<lastBuildDate>Mon, 07 Jun 2010 12:36:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: JM</title>
		<link>http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/comment-page-1/#comment-38</link>
		<dc:creator>JM</dc:creator>
		<pubDate>Mon, 07 Jun 2010 12:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unthunk.com/?p=42#comment-38</guid>
		<description>I would also like a clear button, preferably configurable to appear or not.

Concerning the client/server side validation of the date: My approach has always been, and will always be, that while client-side validation is convenient for the user, you should always validate server-side too, and be prepared to handle any errors generated there. Never rely exclusively on client-side scripts for data validation.</description>
		<content:encoded><![CDATA[<p>I would also like a clear button, preferably configurable to appear or not.</p>
<p>Concerning the client/server side validation of the date: My approach has always been, and will always be, that while client-side validation is convenient for the user, you should always validate server-side too, and be prepared to handle any errors generated there. Never rely exclusively on client-side scripts for data validation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hubert</title>
		<link>http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/comment-page-1/#comment-27</link>
		<dc:creator>Hubert</dc:creator>
		<pubDate>Mon, 15 Mar 2010 14:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unthunk.com/?p=42#comment-27</guid>
		<description>Great blog.

Same here. Please bring back the clear button! Any workarounds? Thanks.</description>
		<content:encoded><![CDATA[<p>Great blog.</p>
<p>Same here. Please bring back the clear button! Any workarounds? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/comment-page-1/#comment-26</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 23 Feb 2010 21:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unthunk.com/?p=42#comment-26</guid>
		<description>Does anyone have some example code showing how to add a clear button?

I think its a little ridiculous that the jQuery UI people don&#039;t think its necessary.

Its a common use case I&#039;ve seen many many times: The server requires dates in a specific format.  So the field is set to read only, forcing the user to use the date picker.  But once they select a date they can&#039;t clear it!  I am having issues now in several areas of our site because user&#039;s can&#039;t clear the date.  We have many search forms that use dates, sometimes they put in a date but later want to pull it out after doing several searches.  Right now they have to refresh the whole page, loosing all their other search criteria.</description>
		<content:encoded><![CDATA[<p>Does anyone have some example code showing how to add a clear button?</p>
<p>I think its a little ridiculous that the jQuery UI people don&#8217;t think its necessary.</p>
<p>Its a common use case I&#8217;ve seen many many times: The server requires dates in a specific format.  So the field is set to read only, forcing the user to use the date picker.  But once they select a date they can&#8217;t clear it!  I am having issues now in several areas of our site because user&#8217;s can&#8217;t clear the date.  We have many search forms that use dates, sometimes they put in a date but later want to pull it out after doing several searches.  Right now they have to refresh the whole page, loosing all their other search criteria.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charliefortune</title>
		<link>http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/comment-page-1/#comment-20</link>
		<dc:creator>charliefortune</dc:creator>
		<pubDate>Thu, 01 Oct 2009 12:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unthunk.com/?p=42#comment-20</guid>
		<description>Hi - I am also using a readonly field as a form of frontline validation. Only allowing the datePicker to fill the field enforces the format and the validity of the dates. I too would like the clear button, guess I will be adding my own..</description>
		<content:encoded><![CDATA[<p>Hi &#8211; I am also using a readonly field as a form of frontline validation. Only allowing the datePicker to fill the field enforces the format and the validity of the dates. I too would like the clear button, guess I will be adding my own..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ole Jørgensen</title>
		<link>http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/comment-page-1/#comment-14</link>
		<dc:creator>Ole Jørgensen</dc:creator>
		<pubDate>Tue, 14 Apr 2009 13:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unthunk.com/?p=42#comment-14</guid>
		<description>Hi
I use an altField and altFormat on a hidden field. The altFormat is simple &#039;dd/mm/yy&#039; - independent of i18n. The visible format has written month name: &#039;dd M yy&#039;. I use the altField on server side. 
Problem is that when user clear the visible field, the alt field still has the old value. So the altField can not be cleared.</description>
		<content:encoded><![CDATA[<p>Hi<br />
I use an altField and altFormat on a hidden field. The altFormat is simple &#8216;dd/mm/yy&#8217; &#8211; independent of i18n. The visible format has written month name: &#8216;dd M yy&#8217;. I use the altField on server side.<br />
Problem is that when user clear the visible field, the alt field still has the old value. So the altField can not be cleared.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/comment-page-1/#comment-12</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Thu, 26 Mar 2009 17:01:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unthunk.com/?p=42#comment-12</guid>
		<description>Hi lucas.  I didn&#039;t see you followup over at the wiki http://wiki.jqueryui.com/DatePickerCalendar

I&#039;m posting here because I rather not create an account to login over there.  Kindly add my comments if you add a wiki comment.

I&#039;m here today because I&#039;m looking for a date picker with a clear button and found your site.  Currently I have pages with a separate button/icon to clear the date.  It looks fine on those pages, but now I will have to make the icons smaller for pages where the icon should be the size of the date text.  It could be a non-issue if the date picker allowed the user to REMOVE a date picked in error while maintaining validated entries for correct dates.

Allowing the user to click into the field to clear the text is a fine thought, but it also allows them to input dates in a format I do not want; or totally invalid dates unless I add client-side validation.

I use read-only text fields so that the user can&#039;t enter an invalid date.  If you go to http://jqueryui.com/demos/datepicker/ you can enter an invalid &quot;date&quot; like 444/44/444444 and tab out of the field.  Read-only saves client-side date validation.  (Actually on some pages, I don&#039;t even display a text field.  It looks like normal text; then you double-click on it; then a calendar appears then a date is selected (I wish it could also be cleared); when the calendar closes, the text looks like inline normal ([read-only] date) text again.

My workaround seems to be that I will have to provide smaller icons.  Their goal seems to be visual clarity (which I think is better placed in the large popup calendar than inline with a small or oversized icon).  I&#039;ll just be helping the Optometrists.</description>
		<content:encoded><![CDATA[<p>Hi lucas.  I didn&#8217;t see you followup over at the wiki <a href="http://wiki.jqueryui.com/DatePickerCalendar" rel="nofollow">http://wiki.jqueryui.com/DatePickerCalendar</a></p>
<p>I&#8217;m posting here because I rather not create an account to login over there.  Kindly add my comments if you add a wiki comment.</p>
<p>I&#8217;m here today because I&#8217;m looking for a date picker with a clear button and found your site.  Currently I have pages with a separate button/icon to clear the date.  It looks fine on those pages, but now I will have to make the icons smaller for pages where the icon should be the size of the date text.  It could be a non-issue if the date picker allowed the user to REMOVE a date picked in error while maintaining validated entries for correct dates.</p>
<p>Allowing the user to click into the field to clear the text is a fine thought, but it also allows them to input dates in a format I do not want; or totally invalid dates unless I add client-side validation.</p>
<p>I use read-only text fields so that the user can&#8217;t enter an invalid date.  If you go to <a href="http://jqueryui.com/demos/datepicker/" rel="nofollow">http://jqueryui.com/demos/datepicker/</a> you can enter an invalid &#8220;date&#8221; like 444/44/444444 and tab out of the field.  Read-only saves client-side date validation.  (Actually on some pages, I don&#8217;t even display a text field.  It looks like normal text; then you double-click on it; then a calendar appears then a date is selected (I wish it could also be cleared); when the calendar closes, the text looks like inline normal ([read-only] date) text again.</p>
<p>My workaround seems to be that I will have to provide smaller icons.  Their goal seems to be visual clarity (which I think is better placed in the large popup calendar than inline with a small or oversized icon).  I&#8217;ll just be helping the Optometrists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lucas</title>
		<link>http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/comment-page-1/#comment-8</link>
		<dc:creator>lucas</dc:creator>
		<pubDate>Tue, 10 Feb 2009 21:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unthunk.com/?p=42#comment-8</guid>
		<description>Thanks Scott, I&#039;ll be sure to post on the wiki next time.

As for having datepicker attached to a readonly input, that was a decision made by the boss who double-clicks everything (including input fields). In this particular example, the date field is used regularly to run reports from various time frames.  Every time he double-clicked a date input it wold display Datepicker with the history of values entered into the field over the top. Setting the field readonly prevented the history from appearing on top of datepicker.  I agree that it&#039;s not the most elegant solution and that it&#039;s counter to the HTML spec, but it&#039;s sometimes harder to change user behavior than markup.

I&#039;ll see if I can get a demo up in the next day or two.

Since buttons are no longer displayed by default in Datepicker, perhaps cancel can be added back in an option that is disabled by default?  Otherwise, allowing custom buttons would be nice!</description>
		<content:encoded><![CDATA[<p>Thanks Scott, I&#8217;ll be sure to post on the wiki next time.</p>
<p>As for having datepicker attached to a readonly input, that was a decision made by the boss who double-clicks everything (including input fields). In this particular example, the date field is used regularly to run reports from various time frames.  Every time he double-clicked a date input it wold display Datepicker with the history of values entered into the field over the top. Setting the field readonly prevented the history from appearing on top of datepicker.  I agree that it&#8217;s not the most elegant solution and that it&#8217;s counter to the HTML spec, but it&#8217;s sometimes harder to change user behavior than markup.</p>
<p>I&#8217;ll see if I can get a demo up in the next day or two.</p>
<p>Since buttons are no longer displayed by default in Datepicker, perhaps cancel can be added back in an option that is disabled by default?  Otherwise, allowing custom buttons would be nice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Jehl</title>
		<link>http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/comment-page-1/#comment-7</link>
		<dc:creator>Scott Jehl</dc:creator>
		<pubDate>Tue, 10 Feb 2009 04:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unthunk.com/?p=42#comment-7</guid>
		<description>Hi. I&#039;d encourage you to post comments like this to the planning wiki page since its more likely we&#039;ll see it and respond there.

As for your use case, it is unclear to me why you would have a datepicker attached to a readonly text field. The HTML spec defines readonly inputs as those the user is not intended to edit. Similar to a disabled input, the difference being that its value is submitted with the form. 

Could you explain the rationale behind having an editable widget attached to a non-editable form field? A demo page would be particularly helpful.

We removed the clear button for the reasons you quoted above, but also to remove visual complexity that can otherwise easily be done by clicking into an input and deleting the text. There are a multitude of similarly complex user behaviors that could be covered through button shortcuts, but of course the more buttons you add, the less usable the interface becomes. Perhaps in a future release, we could allow custom buttons (similar to dialog) where you could define your own callbacks to suit the needs of your app...?</description>
		<content:encoded><![CDATA[<p>Hi. I&#8217;d encourage you to post comments like this to the planning wiki page since its more likely we&#8217;ll see it and respond there.</p>
<p>As for your use case, it is unclear to me why you would have a datepicker attached to a readonly text field. The HTML spec defines readonly inputs as those the user is not intended to edit. Similar to a disabled input, the difference being that its value is submitted with the form. </p>
<p>Could you explain the rationale behind having an editable widget attached to a non-editable form field? A demo page would be particularly helpful.</p>
<p>We removed the clear button for the reasons you quoted above, but also to remove visual complexity that can otherwise easily be done by clicking into an input and deleting the text. There are a multitude of similarly complex user behaviors that could be covered through button shortcuts, but of course the more buttons you add, the less usable the interface becomes. Perhaps in a future release, we could allow custom buttons (similar to dialog) where you could define your own callbacks to suit the needs of your app&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Buckley</title>
		<link>http://blog.unthunk.com/2009/02/09/put-the-clear-button-back-in-datepicker/comment-page-1/#comment-6</link>
		<dc:creator>Phil Buckley</dc:creator>
		<pubDate>Tue, 10 Feb 2009 03:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unthunk.com/?p=42#comment-6</guid>
		<description>Making presumptions about how people will use something is easy to do, but usually dead wrong.

You&#039;re right, as usual Lucas.

I hope you can set them straight.</description>
		<content:encoded><![CDATA[<p>Making presumptions about how people will use something is easy to do, but usually dead wrong.</p>
<p>You&#8217;re right, as usual Lucas.</p>
<p>I hope you can set them straight.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
