greywire
Posts: 37
|
Posted: 03/20/2006, 11:28 AM |
|
There's an excelent javascript library that makes AJAX a breeze, called prototype.js. There are also several packages (rico, scriptaculous) based on prototype.js that handle lots of neat effects.
The only problem is that prototype.js has issues with some javascript code. In particular, the pop up date picker in CCS. Here's a simple fix for this problem.
In DatePicker.js, in function createWeekdayList(), starting from line 961 you have this code:
// Loop through weekday array
var columnCount = 0;
for (i in listShortWeekdays)
{
if (listShortWeekdays.propertyIsEnumerable(i)) { //** custom: added to workaround prototype.js extensions
weekdays += "<TD class=\"CalendarWeekdayName\" align=\"center\">" + newWeekdayArray + "</TD>";
columnCount++;
} //** custom
}
The two lines with the "custom" comments are what you need to add.
Another really neat javascript library is behavior.js, check it out at http://bennolan.com/behaviour/
_________________
--
Aric Caley
Fonality, inc |
|
|
Jason Peixoto
|
Posted: 04/12/2006, 10:25 PM |
|
Hi
Can you give a link to the prototype.js please :)
Any help on Ajax would be great.
Thanks.
|
|
|
2467
Posts: 47
|
Posted: 04/13/2006, 7:47 AM |
|
http://prototype.conio.net/
|
|
|
|