PDA

View Full Version : object expected error


funnybuggy
11-21-2002, 04:58 PM
Hi...newbie here!

I'm trying to use a popup calendar that I found here http://www.yxscripts.com/cal/cal3.html

I've tried several times to get this to work...tried following the directions to a "T" and I keep getting an "object expected line 1 character 1" error.

Any idea why?

Here's my htm page:

<html>

<head>
<script language="javascript" src="cal3.js"></script>
<script language="javascript" src="cal_conf3.js"></script>
</head>
<body>
<form name="sample" method="post" action="thanks.html">
<input type="text" name="CalendarFormFieldName" size="25"><a href="javascript:showCal('CalendarName')">...</a>



</form>
</body>

</html>



thanks for any help!
Shawna

beetle
11-21-2002, 06:19 PM
Did you email the author?

glenngv
11-22-2002, 02:34 AM
did you download the 2 external javascripts?

<script language="javascript" src="cal3.js"></script>
<script language="javascript" src="cal_conf3.js"></script>

funnybuggy
11-22-2002, 02:48 AM
yes, i did download the two js files and placed them in the correct directory, followed the directions perfectly...tried it at least 3 times starting from scratch on each. no idea what's wrong here!

glenngv
11-22-2002, 03:08 AM
do you have this in cal_conf3.js?

addCalendar("CalendarName", "CalendarFormFieldName", "sample");

your form name is "sample", so it should be like that not "CalendarFormName".

or you can leave it blank if you only have 1 form as the author said.