isogunro
Junior Member
Posts: 2
Registered: 1/12/2004
Member Is Offline
|
| posted on 1/12/2004 at 03:53 PM |
|
|
Free Calendar Script
When I install the calendar, I get the javascript error below:
error: 'cal2' is null or not an object
The code is attached.
Thanx in advance.
ps. using ie 6
Attachment: tstCal.htm (1.46kb)
This file has been downloaded 428 times
|
|
|
CFD
Moderator
Posts: 48
Registered: 12/8/2003
Member Is Offline
|
| posted on 1/13/2004 at 08:55 AM |
|
|
Error reason is the following:
tag <form> in your atached file didn't have form's name.
For your example you should write next : <form name="reserved">
|
|
|
isogunro
Junior Member
Posts: 2
Registered: 1/12/2004
Member Is Offline
|
| posted on 1/13/2004 at 06:19 PM |
|
|
calendar still does not work
Attached is the complete code.
The European format works but not the American. And that's the one I need.
Thanx again for any help.
error is: cal2 is not defined
Attachment: tstCal.htm (11.56kb)
This file has been downloaded 442 times
|
|
|
CFD
Moderator
Posts: 48
Registered: 12/8/2003
Member Is Offline
|
| posted on 1/14/2004 at 09:02 AM |
|
|
For American format you should use next conctructions:
<script language=JavaScript src="calendar2.js"></script> - on the top of page
and
<script language=JavaScript>
<!--
var cal2 = new calendar2(document.forms['reserved'].elements['stDate']);
cal2.year_scroll = true;
cal2.time_comp = false;
</script>
after tag </form>
but you used
var cal2 = new calendar1(document.forms['reserved'].elements['stDate']);
in your atached file
|
|
|