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: Calendar Not working
xtreme-web
Newbie

Posts: 1
Registered: 8/6/2004
Member Is Offline
posted on 8/6/2004 at 06:04 PM Reply With Quote
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>
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