CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 [RESOLVED] Issues with Prototype 1.6.0.2 and Datepicker

Print topic Send  topic

Author Message
marcwolf


Posts: 361
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!!!!!!!
View profile  Send private message
quasimidi


Posts: 151
Posted: 07/14/2008, 2:14 PM

Thanks Dave!
_________________
RS
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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