secondpost
Newbie
Posts: 1
Registered: 10/28/2003
Member Is Offline
|
| posted on 11/10/2003 at 01:40 PM |
|
|
Using calendar with dynamic forms
I need to use the 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 declare the var cal6, var cal7 etc when the form field doesn't exist yet it gives a target control error. Is there any way I can
declare the
var cal6 = new calendar1(document.forms['formname'].elements['fieldname']);
cal6.year_scroll = true;
cal6.time_comp = false;
code after the field has been created i.e. dynamically?? Creating the button and link is easy but when I click this and dont have the above code
included I get an object doesn't exist error. So I need to be able to declare the above code between creating the form field and the user
clicking the calender button. Is this possible??
|
|
|
|