Jasmine
Newbie
Posts: 1
Registered: 11/16/2006
Location: Ireland
Member Is Offline
|
| posted on 11/16/2006 at 04:13 AM |
|
|
Problem with pop calendar
Hi
I have a problem with the calendar.
Here is my code: -
<form name="weighReminderForm" action="weighReminderScript.cfm" method="post">
<tr>
<td>
To get recipients of WIRs sent on
</td>
<td>
<INPUT type="text" name="calTxt" value = "<cfoutput>#qDate#</cfoutput>" size="10">
<a href="javascript:calObject.popup();">
<img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
</a>
</td>
<td>
<input type="submit" name = "submit" value="Get recipients">
</td>
</tr>
</form>
<script language="JavaScript">
var calObject = new calendar1(document.forms['weighReminderForm'].elements['calTxt']);
cal1.year_scroll = true;
cal1.time_comp = false;
</script>
But when i try to get the calendar to pop up i get the followin error calObject is null or not an object.
Please help
Thanks
Jasmine
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 11/16/2006 at 11:38 AM |
|
|
you called the variable calObject then try to access properties of cal1:
cal1.year_scroll = true;
cal1.time_comp = false;
|
|
|