Open Source Downloads
Javascript:Date-picker
Publisher web site:
unobtrusive-date-picker-widget-v5
Words from the author: Yet another attempt writing a datePicker (calendar) that is accessible using the keyboard, requires no embedded JavaScript blocks, uses no pop-up windows and is suitable for use within documents served as application/xhtml+xml.
We modified it in the following way:
- Allow absolute position.
- Allow time selection.
Sample code using the new feature:
Note the new "bounds" member in the parameter "opts". It may have following members:
- position: it indicates the position style of the date-picker button.
- inputRight: it is used when position is absolute. If it is true then the date-picker button will be moved to the right side of the input box.
- x: it is used when position is absolute and inputRight is not used. It indicats the left location of the date-picker button.
- y: it is used when position is absolute and inputRight is not used. It indicats the top location of the date-picker button.
- fontSize: it indicates the font size of the calendar.
- inputTime: if this member is given and true then drop down list boxes will be provided for selecting hours, minutes and seconds.
The new date-picker can be download here:date-picker-v5-limnor.zip.
The modified version is released under the same open source license as the original work does:CC share-alike license
Javascript:Get element position
This is a JavaScript function to get the absolute coordinates of a DOM element within a document.
It is available at http://www.codeproject.com/KB/scripting/dom-element-abs-pos.aspx.
Javascript:date time format
This is a JavaScript function to format date time into string.
It is available at http://blog.stevenlevithan.com/archives/date-time-format