DatePicker using Prototype and Scriptaculous

Javascript Add comments

Until we get into the browsers, we will need to create data pickers.

DatePicker is a simple one that users Prototype and Script.aculo.us, and does the basics well (although the fade can be a touch annoying to me).

It is very simple to use too:

PLAIN TEXT
HTML:
  1. @import("/css/datepicker.css");
  2.      var dpck   = new DatePicker({
  3.       relative  : 'date-from',
  4.       language  : 'en'
  5.       });
  6. Of course, you could easily wrap this in a microformat so you can just do.

    Prototype Date Picker

    [via Ajaxian]

Leave a Reply

Entries RSS Comments RSS Login