CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Datepicker script error

Print topic Send  topic

Author Message
Harry
Posted: 07/10/2003, 8:14 AM

Added datepicker to working application written in ccs 1.0 after upgrading to ccs 2.1.1.20 Now receiving the following java script error: "Line 500 Char 3 Document.task.date_due is not an object. Deleted datepicker and re-added numerious times, problem not resolved. Entered all required all control information.
Have another application written completly in ccs 2.1.1.20 and it works fine. any suggestions greatly appriciated.
rrodgers
Posted: 07/10/2003, 9:17 AM

Post some of the code around line 500?.


You could also try and move
function.js and datepicker.js to a different folder and then regenerate the site. (move don't delete so you can goback to the previous version if needed)

rob
DaveRexel
Posted: 07/10/2003, 9:42 AM

Hello Harry

Here's a variation on Robs excellent suggestion. Compress your entire project folder and move it to a backup location. Now regenerate your project watching for errors at generation in the IDE message box, these are the components that will have to be re-inserted. Re-insert the problem components and regenerate this new material, publish the entire project at this stage to make sure all changes get onsite.

There are significant changes in the codebase between CCS v2x and the very latest version 2.1.1.20 that has broken some of my pages as referenced here :

http://www.rexdesign.com/ccs/kb.php?language_id=1&categ...ent_id=65#error

Not to worry, I worked around those problems as I hope you will yours.

Greetings
Dave
Harry
Posted: 07/10/2003, 5:34 PM

Here is the code from datepicker.js

// Set the initial value of the global date field
function setDateField(dateField)
{
// Assign the incoming field object to a global variable
datepickerControl = eval(dateField);

// Set DatePickerObject.selectedDate to the date in the incoming field or default to today's date
setInitialDate(datepickerControl.value);

Tried relocating function.js and datepicker.js to another folder, but the new copy of both produced the same error. it seems the Eval(datefield) in above code is not finding the proper object. Does anyone know where this object is supposed to be created? . Thank you in advance.


   


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.