DatePicker in November

5 views
Skip to first unread message

Philip Thompson

unread,
Nov 4, 2009, 12:06:38 PM11/4/09
to clien...@googlegroups.com
This is quite an odd occurrence that I've come across. For the month
of November, if the date text field is populated with a date and I
click on the calendar (DatePicker) for that field, all the days show
1. 42 days of 1. If I click the right arrow to move to December, the
*real* November shows up correctly. I'm using MooTools=
{'version':'1.2.2','build':'2.0.3'}. Is anyone else having this
problem? Is there a solution? The application is in production and is
somewhat inconvenient for our clients.

The HTML/JS looks like so...

------------------------------
<input type="text" name="report_dates_from" id="report_dates_from_id"
value="11/04/2009" size="10" /> <img src="images/calendar.gif" alt=""
title="Date selector" id="report_dates_from_id_image" />

<script type="text/javascript">
window.addEvent('domready', function () {
new DatePicker('report_dates_from_id', {
additionalShowLinks: ['report_dates_from_id_image'],
showOnInputFocus: false,
updateOnBlur: false,
useDefaultCss: false,
stickyWinOptions: {
offset: { x: 110, y: -100 },
fadeDuration: 100
}
});
});
</script>
------------------------------

Note that I also have a blur event on the text field which updates the
date into the format MM/DD/YYYY.

Thanks,
~Philip

Aaron Newton

unread,
Nov 4, 2009, 12:16:58 PM11/4/09
to clien...@googlegroups.com
I saw this the other day - someone else posted an issue.

I haven't had time to work on it so I don't know what the issue is. I've been spending nearly all my time working on MooTools itself, and haven't spent a ton of time maintaining the Clientcide codebase.

I would encourage you to fork it on github and try and identify the problem yourself. If you can fix it, I'll pull from you and release it.

Alternately you can wait for me to do it, but that might be awhile. I have a lot of mootools-focused things on my plate.

Philip Thompson

unread,
Nov 4, 2009, 12:26:56 PM11/4/09
to clien...@googlegroups.com
Thanks for your reply. If it only occurs in November, I might just wait a month for it to pass....

Thanks,
~Philip
"innerHTML is a string. The DOM is not a string, it's a hierarchal object structure. Shoving a string into an object is impure and similar to wrapping a spaghetti noodle around an orange and calling it lunch."

Aaron Newton

unread,
Nov 4, 2009, 12:35:01 PM11/4/09
to clien...@googlegroups.com
hahaha!

Zach Gambino

unread,
Nov 4, 2009, 7:09:15 PM11/4/09
to clien...@googlegroups.com
I have the same problem and made the same decision!
But if I can get to it, I'll fork and start looking into it. I'll let
you all know if I find something.
One thing I did notice about it is that if you have multiple instances
of DatePicker on a page, it doesn't always affect them all.

Cristiano Da Villa

unread,
Nov 5, 2009, 3:48:28 AM11/5/09
to clien...@googlegroups.com
Hello Zach

We have The same problem. And is't sounds like an "enigma".

Our web Client work well with Ie (7.x - 8.x) and Fx (2.x - 3.5) with Italian Culture (dateTime)
and all have windows Xp Srv pkg 3.

But we have a pc with Greek Culture (also Xp srv pkg 3 anf Fx 3,5). Only this have the problem.

Here you can see the problem
http://jsmt.2mservizi.org/ew/ewmt/cl_datepicker.php

Remember
- It's happen only with Pc with Sis Ope culture != italian
- It's happen when the field is filled with the value (we have dd/mm/yy format)
  So first you have to choose a date and fill the form. Then click again on datepicker (so you have the problem)

- Last one. The problem happen with both weekStartOffset:
  weekStartOffset: 1 (case on your sx)
  weekStartOffset: 0 (case on your dx)
I hope this could be helpful.



Ps. Maybe this bugs have a relationship with this other bugs:
http://code.google.com/p/cnetjavascript/issues/detail?id=106





Zach Gambino ha scritto:
--------------------------------------------------------------------------------------------------------------------------
Nota di riservatezza:
I dati contenuti nella presente mail e in ognuno dei suoi allegati sono strettamente riservati e confidenziali e di uso esclusivo dei loro destinatari.
In caso di ricezione per errore, ogni divulgazione, riproduzione, distribuzione o uso degli stessi e' assolutamente proibita.

Confidentiality Notice:
The information contained in this message or any of its attachments may be privileged and confidential and intended for the exclusive use of the addressee.
If you are not the addressee any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited.
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------

This message has been scanned by MDaemon AntiVirus

Antivirus Kaspersky Lab - Antivirus for Mdaemon
--------------------------------------------------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages