CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 ajax with prototype.js

Print topic Send  topic

Author Message
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
View profile  Send private message
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/
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.