pondlife
Newbie
Posts: 1
Registered: 3/10/2008
Location: UK
Member Is Offline
|
| posted on 3/10/2008 at 04:06 PM |
|
|
Error 'cal1' is null or not an object
Just installed Tigra Calendar and followed the instructions to the letter. I receive this error in IE7 when the cal.gif link is clicked:
Line: 1
Char: 1
Error: 'cal1' is null or not an object
My html looks like this (edited down):
<head>
<script language="JavaScript" src="../_scripts/calendar1.js"></script>
</head>
<body>
<form method="POST" action="--WEBBOT-SELF--" name="myformname">
<input type="text" name="myinputname" size="10">
<a style="color: #0000aa; text-decoration: none; font-family: Tahoma, Verdana; font-size: 11px" href="javascript:cal1.popup();"><img
height="16" alt="Click here to choose this date from a calendar" src="_images/graphics/cal.gif" width="16" border="0"></a><a
href="javascript:cal1.popup();"></a>
</form>
<script language="JavaScript">
var cal1 = new calendar1(document.forms['myformname'].elements['myinputname']);
cal1.year_scroll = true;
cal1.time_comp = false;
</script>
</body>
|
|
|
tigra
Administrator
Posts: 1916
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 3/11/2008 at 02:51 PM |
|
|
there must be another error message on that page. something like "calendar1 is not defined". If that's the one then the path to calendar1.js is
incorrect or that file is missing.
|
|
|