Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Using calendar with dynamic forms
secondpost
Newbie

Posts: 1
Registered: 10/28/2003
Member Is Offline
posted on 11/10/2003 at 01:40 PM Reply With Quote
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??
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004