| Posted: 07/10/2008, 3:50 PM |
|
Hi all
I was working on some pages (and this will occur both in CCS 3 & 4) when I noticed that my DatePicker went crazy.
After much investigation I found that there is a conflict between Prototype and the DatePicker.
The error occurs in the createWeekdayList function in DatePickerJS
The offending area is
// Loop through weekday array
for (i in listShortWeekdays)
{
weekdays += "<TH class=\"calendar\" align=\"center\">" + newWeekdayArray + "</TH>";
}
And it should be changed to
for (var i=0; i<listShortWeekdays.length; i++)
{
weekdays += "<TH class=\"calendar\" align=\"center\">" + newWeekdayArray + "</TH>";
}
The first part seem to throw Protoype out because it treats the array as a collection rather than a array.
Anyway- hope this helps
Take Care
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|