xtreme-web
Newbie
Posts: 1
Registered: 8/6/2004
Member Is Offline
|
| posted on 8/6/2004 at 06:04 PM |
|
|
Calendar Not working
I am attempting to add the Calendar to an existing form but am receiving several errors: "cal1 is undefined" and "Syntax error" .
I have several other JavaScripts in this form including form validation and cookies, could there be a conflict?
Here's a code snippet:
between the <head></head> tags:
<SCRIPT language="JavaScript" src="calendar1.js"></SCRIPT>
Part of the form:
<form action="/cgi-bin/form" method="post" name="loaner">
<input name="date_required" type="text" size="20" maxlength="30">
<a href="javascript:cal1.popup();"><img height="16" alt="Click Here to Pick up the date"
src="forms/cal.gif" width="16"
border="0" />
</form>
<script language="JavaScript">
var cal1 = new calendar1(document.forms['loaner'].elements['date_required']);
cal1.year_scroll = true;
cal1.time_comp = false;
</script>
|
|
|
|