S
Secondpost
I need to use a calender object with a dynamic form i.e. when a new
row of fields is created using Javascript a calender button appears
aswell. The problem is if I need to declare the following code for the
calendar script to work:
var cal6 = new calendar1(document.forms['formname'].elements['fieldname']);
cal6.year_scroll = true;
cal6.time_comp = false;
where the # 6 will change as the user adds a new field (by clicking a
button).
My problem is that the code doesn't seem to execute during run-time.
If I add the code to the include file after the field is created it
still doesn't recognise that the calendar objects exists. Can anyone
help??
row of fields is created using Javascript a calender button appears
aswell. The problem is if I need to declare the following code for the
calendar script to work:
var cal6 = new calendar1(document.forms['formname'].elements['fieldname']);
cal6.year_scroll = true;
cal6.time_comp = false;
where the # 6 will change as the user adds a new field (by clicking a
button).
My problem is that the code doesn't seem to execute during run-time.
If I add the code to the include file after the field is created it
still doesn't recognise that the calendar objects exists. Can anyone
help??