Monday, September 28, 2009
Thanks for the comments everyone. I have made a few changes to my TimePicker component based on some of the comments. The example now has the Klok 2 skin applied to it.
You can see the updated version here.
Friday, September 25, 2009
While working on Klok, I have tried several different mechanisms for entering the start time or end time of an entry. Having looked at a bunch of examples such as the Yahoo Astra one, this one, this one and this one I started to see a pattern. Most of the examples are "stepper" based controls. What this means is that to get from one time to a different time it involves a varying number of clicks depending on the times. For example, if the control's current time was 3:35 AM and you need to change it to 12:19 PM, it requires a whole bunch of steps to get there.
What I really wanted was a way to pick the time in the fewest number of clicks and allow for just typing in the time directly if you happen to prefer that. The result is a true time "picker" control that is loosely based on the way a DateField works. There is still some work to be done on the skin but I think I am on the right path.
To use, just click the icon and pick the time. Or, just enter the time directly. The following formats are accepted:
- 1:49 PM
- 1P (Shortcut for entering 1:00 PM)
This control is my proposed solution to be used in Klok 2.
Please give it a try and see if it works for you. (Please try to break it if possible.) Whether you like it or not, please leave some comments so I can improve upon it.
UPDATE - I made some changes based on the comments and updated the demo. Which now has the Klok 2 skin applied to it.
Tuesday, September 22, 2009
Wednesday, September 16, 2009