Hi,
I have a javascript error when I try to open a calendar popup. I am not sure why it stopped working. It was working fine earlier. Here is the code. I appreciate your help.
[code=html]<input type=”text” clas=”text” name=”requestedStartDate” size=”15″ maxlength=”10″ id=”requestedStartDate” />
<script type=”text/javascript”>
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 91);
var reqStartDateCal = new CalendarPopup(“reqStartDateDiv”);
reqStartDateCal.addDisabledDates(“<alldata:data name=”pageStartDate” />”,formatDate(futureDate,”yyyy-MM-dd”));
reqStartDateCal.setDisabledWeekDays(0,6);
</script>
<DIV ID=”reqStartDateDiv” STYLE=”position:absolute;visibility:hidden;background-color:white;layer-background-color:white;”></DIV>
<A HREF=”#” onClick=”reqStartDateCal.select(document.forms[0].requestedStartDate,’anchor1x’,’MM/dd/yyyy’, ”); return false;” NAME=”anchor1x” ID=”anchor1x”>
<img src=”<%=calendarImg%>” border=”0″/>
The error that I get is :
Line: 1174
Char: 2
Error: ‘type’ is null or not an object.
I appreciate your help.
Thanks,
Prasav.