javaspace
Junior Member
Posts: 2
Registered: 2/13/2003
Member Is Offline
|
| posted on 2/13/2003 at 09:21 PM |
|
|
Having problem to invoke calendar
Hi:
When my page loads I get an error stating Error calling the calendar:no target control specified.
Thanks for your help in advance. Here is my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<TITLE> DSC EDI 214 Delivery Interface </TITLE>
<script language="JavaScript" src="calendar2.js"></script><!-- Date only with year scrolling // -->
</head>
<body>
<form name="frmedi214d">
<table border=1 width=500> <TD width='150'>Status Date/Time </TD><TD width='50'> <BR> <input
type='Text' name='sdt52' value='' > <a href="javascript:cal52.popup();"><img
src='images\cal.gif' width='15' height='10' border='0' alt='Click Here to Pick up the
date'></a></input><br><BR></TD> </tr></table> </form>
<script language="JavaScript">
var cal52 = new calendar2(document.forms['frmedi214d'].elements['input52']); cal52.year_scroll = true;cal52.time_comp = true
</script>
</body>
</html>
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 2/14/2003 at 08:00 AM |
|
|
re: Having problem to invoke calendar
That is just because you specified target control as document.forms['frmedi214d'].elements['input52'] but the only control present on your page isdocument.forms['frmedi214d'].elements['sdt52']
|
|
|
javaspace
Junior Member
Posts: 2
Registered: 2/13/2003
Member Is Offline
|
| posted on 2/14/2003 at 01:36 PM |
|
|
Thanks nik for point out the problem. I fixed that problem.Now when I click on the icon, I get page not found error?. Can you please advice?
Thanks for your help.
|
|
|