Hi All,
I use a great little Javascript Calendar component called JSCalendar. We have this running with 100s of users without a problem. On three machines we have encountered
'Calendar is undefined' which is really strange.
The first occurrence was with a desktop running IE5, and when updated to IE6 the issue went away.
We now have 2 laptops with the same problem, different site. These laptops are running IE6.0.29 on Windows 2000, patched to date, and apparently have the same config as all the desktops in the same company which all work fine... what????
So for the code.
In the <head> section I reference the Calendar code files.
<link href="../../../Js/Other/JS
Calendar/c
alendar-th
eme.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../../Js/Other/JSC
alendar/ca
lendar.js"
></script>
<script type="text/javascript" src="../../../Js/Other/JSC
alendar/la
ng/calenda
r-en.js"><
/script>
<script type="text/javascript" src="../../../Js/Other/JSC
alendar/ca
lendar-set
up.js"></s
cript>
In the body I have a textbox with an arrow image to the right of it which when clicked brings up the calendar. When you click on the calendar on the relevant date, the value goes into the textbox. The calendar is a CSS layer so no need for a popup.
This is the calling code in the <body>
<div id="FromDateValue">
<input id="tbFromDate" name="FromDate" style="width:157px;height:
19px" type="text" class="REM_FormTextboxGo" value="01/01/2004" size="16" maxlength="20" onBlur="blnIsDirty=true;"/
>
</div>
<div id="FromDateGo">
<a id="HlImgFromDateGo" href="#">
<img id="ImgFromDateGo" onClick="blnIsDirty=true;"
src="../../../img/ddlb.gif
" alt="Click Here to Pick up the date" border="0"/>
</a>
<script type="text/javascript">
Calendar.setup({
inputField : "tbFromDate", // id of the input field
ifFormat : "%d/%m/%Y", // format of the input field
daFormat : "%d/%m/%Y", // format of the input field
button : "HlImgFromDateGo", // trigger for the calendar (button ID)
align : "Bl", // alignment (defaults to "Bl")
singleClick : true
});
</script>
</div>
I appreciate that you may be unfamiliar with this component, but I thought someone may have an idea of why this intermittent JS error would occur, expecially when 98% of the users are fine, so nothing intrinsically wrong with the app.
Any ideas would be hugely appreciated,
Sam
Start Free Trial