public
Description: Click-draggable. Range-makeable. A better calendar.
Homepage: http://stephencelis.com/projects/timeframe
Clone URL: git://github.com/stephencelis/timeframe.git
Search Repo:
Click here to lend your support to: timeframe and make a donation at www.pledgie.com !
stephencelis (author)
Wed Apr 23 06:46:53 -0700 2008
commit  368888b0313cb5cf7f81e40d6cf4e8b8da19a8f7
tree    cd3b6df4049276294c193cc7bdeec56439f5a0f0
parent  a6ebc2582c07b7363e9d9f14ec4feeab3916bb23
name age message
folder .gitignore Sun Apr 20 19:35:00 -0700 2008 Initialization [stephencelis]
folder MIT-LICENSE Sun Apr 20 19:35:00 -0700 2008 Initialization [stephencelis]
folder README.markdown Mon Apr 21 09:05:53 -0700 2008 Synchronize README with the rest [stephencelis]
folder TODO Mon Apr 21 08:38:56 -0700 2008 TODO/FIXME additions [stephencelis]
folder example/ Wed Apr 23 06:46:53 -0700 2008 Start to fix up for IE6. [stephencelis]
folder timeframe.js Tue Apr 22 13:40:52 -0700 2008 IE7 bugfix: Check for 'NaN' in addition to 'Inv... [stephencelis]
README.markdown

Timeframe

Click-draggable. Range-makeable. A better calendar.

The code:

new Timeframe(element, options);

Options available:

  • calendars: The number of calendar months showing at once (default: 2).

  • format: The strftime format for the dates in the input fields (default: %b %d, %Y).

  • weekoffset: The weekday offset (use 1 to start the week on Monday).

  • startfield, endfield: Declare the range start and end input tags (by default, these are generated with the timeframe).

  • previousbutton, todaybutton, nextbutton, resetbutton: Declare the navigational buttons (these are also generated by default with the timeframe).

Notes

  • I'm just sick of multiple date pickers on the same page.

Also!!:

The startfield and endfield are parsed with Date.parse(), so feel free to use Datejs for ninja-quick date-parsing.

An example:

See it in action here.

Dependencies

Timeframe requires Prototype 1.6 or higher.

Download

Find the latest version of Timeframe on Github.

More information can be found at here.

Copyright (c) 2008 Stephen Celis, released under the MIT license.