ninjamastr
Newbie
Posts: 1
Registered: 7/15/2003
Location: New York, NY
Member Is Offline
|
| posted on 7/15/2003 at 06:20 AM |
|
|
'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>
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 7/15/2003 at 07:43 AM |
|
|
To make calendar work correctly you should link calendar1.js or calendar2.js file depending on date format you need.
|
|
|