Super-configurable javascript calendar picker?
November 22, 2008 8:09 AM   Subscribe

Does anyone know of a Javascript/DHTML date picker (or calendar widget, or whatever you want to call it) that allows you to configure it so that only specific date choices are available? Specifically, I'd love to find one that lets me set its configuration such that only the first or third Mondays of the month are clickable, or other restrictions similar to this. Any thoughts?
posted by delfuego to Computers & Internet (4 answers total)
 
jQuery UI's datepicker can do this easily. There are a bunch of demos on the linked page, from which you should be able to easily make the tweak you're looking for. I saw one demo on this page where weekends are not selectable; you should be able to hack that up to do what you want.
posted by rachelpapers at 8:29 AM on November 22, 2008


Coming to recommend jQuery as well. Check out the doc page, it does everything and then some and really isn't that complicated.
posted by Kupo? at 8:57 AM on November 22, 2008


I think you could probably get this done easily with extjs, too, if jQuery isn't your thing.
posted by dreadpiratesully at 9:51 AM on November 22, 2008


Hint: If you include jQuery and jQuery UI from

http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js

and

http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js

instead of installing them locally and serving them yourself, you'll save your bandwidth, and your users' time, since many people have these files cached already.
posted by nicwolff at 12:19 PM on November 22, 2008


« Older Why does Eraser crash, or what can I use instead?   |   How do I make people relax in front of the camera? Newer »
This thread is closed to new comments.