Wednesday, September 14, 2005

XUL Datepicker XBL Binding

I've been using this great datepicker for some projects. The only thing about it that hasn't been very nice is that its an overlay so when used you have to becareful about mixing up ids. I typically use it with an input box and a nice calendar button. So, building on the work of the datepicker I bundled it into an easy to use XBL widget.

datepicker XBL binding
Updated Link:datepicker XBL binding

to use it unpack the tar ball, and add some css like:


datepicker{
-moz-binding: url("chrome://package/content/datepicker.xml#datepicker");
}


Also, note that you'll have to go through the files and fix the chrome paths to match the package your using the datepicker from.

5 comments:

Anonymous said...

HI,

I would find your binding usefull but
when I click on the download link I get a message saying that the tar is not available. :(

Andrew

Anonymous said...

She is working! Thanks a milliion. This datepicker binding is very cool!

Andrew

Anonymous said...

Really good job, I managed to strip off another 16k by removing the DTD file (calendar.dtd) which I'm assuming u've used for a previous project(?) n everything is running great. Thanks for ur time doing this!

Anonymous said...

An exemple of use in the package could be usefull, i can't make it working :(

todd said...

here's an example.

XUL:
<label value="Date"/>
<datepicker flex="0"/>

CSS/Skin:
datepicker{
-moz-binding: url("chrome://package/content/datepicker.xml#datepicker");
}


Hope this helps.

Reading list