As I'm new to Prototype and Scriptaculous I decided to give a shot at
it. So you can find all the information regarding the datepicker at my
company's website :
http://www.eulerian.com/en/opensource/datepicker-prototype-scriptaculous
Any feedback, comments are welcomed ! Especially on the js code.
Regards,
Mathieu
Thanks
You should add different Date formats based on locale aswell. Like:
10.03.2007 or 03-10-07
Here is a german translation for your widget:
'de' : [ 'Januar', 'Februar', 'März', 'April', 'Mai',
'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember' ]
'de' : [ 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So' ],
'de' : 'schliessen'
--
Regards, Kjell
www.m3nt0r.de
--
Regards, Kjell
www.m3nt0r.de
Check out this post from Ben Nolan. Might be interesting for you:
http://www.bennolan.com/articles/2007/02/14/date-prototype-succ
On 3/11/07, Kjell Bublitz <m3nt...@gmail.com> wrote:
> Cool thing :)
>
> You should add different Date formats based on locale aswell. Like:
> 10.03.2007 or 03-10-07
> Here is a german translation for your widget:
>
> 'de' : [ 'Januar', 'Februar', 'M�rz', 'April', 'Mai',
--
Regards, Kjell
www.m3nt0r.de
Thanks !
> You should add different Date formats based on locale aswell. Like:
> 10.03.2007 or 03-10-07
This is already handled, if we are in english locale the mm-dd-yyyy
format is used, dd-mm-yyyy is used otherwise.
> Here is a german translation for your widget:
>
> 'de' : [ 'Januar', 'Februar', 'M�rz', 'April', 'Mai',
> 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember' ]
>
> 'de' : [ 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So' ],
>
> 'de' : 'schliessen'
Thanks, I'll integrate it in a future release.
Mathieu
Answering too fast, I do handle the case of days and switching if we are
in english, but do not handle the case of the date separator : . or -,
it's only / right now.
I'll add in a future release.
Thanks.
Mathieu
Sure it's free, I should add it to the webpage, but the datepicker.js
file contains a statement indicating it's distributed under the same
termes as Prototype and Scriptaculous, MIT-license.
> It threw a script error in IE6 btw.
Ok, I only tested it under Linux as I don't have a box with IE
available right now. A previous version was working ok under IE7 with no
warnings, maybe I made a mod that triggered something.
Thanks for the report.
Mathieu
On Mar 11, 12:19 pm, "math...@jondet.org" <math...@jondet.org> wrote:
> Kjell Bublitz wrote:
> > Cool thing :)
>
> Thanks !
>
> > You should add different Date formats based on locale aswell. Like:
> > 10.03.2007 or 03-10-07
>
> This is already handled, if we are in english locale the mm-dd-yyyy
> format is used, dd-mm-yyyy is used otherwise.
English is not a locale, it is a language spoken in a great many
locales. It is not reasonable to expect that someone using English
will require a date format that is specific to a particular country
that happens to speak English.
The ISO date standard is the place to start for international date
formats:
<URL: http://www.iso.org/iso/en/prods-services/popstds/datesandtime.html
>
--
Rob
Personally, I think there are two concerns
The value shown to the user:
This should be the localized value
And the ISO value commonly:
YYYY-MM-DD
We have tried using the ISO value for our customers, but they really
don't like it. But it makes sense to standardize the passed value.
Secondly,Another calendar is spinelz.org
Lastly, the biggest problem I have had with calendars is having their
styles be independent. So many calendars are great until incorporated
into a main page where there are css style classes.
I am looking forward to trying this one!
Great work.
Deco
Hi Gareth,
ok, I'll will work on this type of approach to give more power to the
user for formatting the date, thanks for the input.
In the meantime I just released an minor update to the initial release
v0.9.1 :
http://www.eulerian.com/en/opensource/datepicker-prototype-scriptaculous
Here is the ChangeLog :
- replace locale by language (RobG)
- add support for german language (Kjell Bublitz)
- add support for portuguese language
- use Prototype.emptyFunction when clickCallBack not defined, should
fix possible bug with IE and null objects (Gareth Evans)
- some code clean-up using Builder.node
Regards,
Mathieu
Hello,
Have you considered aligning it with DHTML calendar?
http://www.dynarch.com/projects/calendar/
when you have adopted what that guy does you get perhaps a bigger client base. I know many projects using it because it does everything what is needed. Especially it has a mechanism for the formatting
.: Fabian
<br
Hi Colin, Fabian, Gareth,
I couldn't agree more. I'll give a look at what could be used as a way
to provide a consistent API and avoid new (inefficient) stuff.
Regards,
Mathieu