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: 'cal' is null or not an object
ninjamastr
Newbie

Posts: 1
Registered: 7/15/2003
Location: New York, NY
Member Is Offline
posted on 7/15/2003 at 06:20 AM Reply With Quote
'cal' is null or not an object


I cannot get this calendar working correctly. I followed the instructions pretty closely. Here is the page generated by my coldfusion. Can anyone help me with this?

Thanks.



<html>
<head>
<title>Administration</title>
<link href="styles.css" rel="stylesheet" type="text/css">

<script language="javascript" id="clientEventHandlersJS">
<!--
function edit_onclick(news_id) {
window.location = "index.cfm?action=edit_news&news_id=" + news_id;
}


//-->
</script>
</head>
<body bgcolor="#DE8703">

<P class="admin"><FONT color="#FFFFFF" size="5"><STRONG>Administration Page</STRONG></FONT></P>

<P style=admin>Edit News</P>
<form id="frmNews" name="frmNews" action="index.cfm?action=update_news" method="POST">


<table>

<tr>
<td>Headline:</td>
<td><input name="txtHeadline" id="txtHeadline" type="text" value="test1"></td>
</tr>
<tr>
<td>Date:</td>
<td>
<input type="Text" name="txtDate" value="">
<a href="javascript:cal.popup();"><img src="../calendar/img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a>
</td>
</tr>
</table>

</form>

<script language="JavaScript">
var cal = new calendar2(document.forms['frmNews'].elements['txtDate']);
cal.year_scroll = true;
cal.time_comp = false;
</script>

</body>
</html>
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 7/15/2003 at 07:43 AM Reply With Quote

To make calendar work correctly you should link calendar1.js or calendar2.js file depending on date format you need.
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