I am encountering an issue with a file named SolarCalendar.htc
. Here are the contents of this file:
<script language="javascript">
//My java Script Code
</script>
<public:property put=fnPutDay get=fnGetDay name="day">
<public:property put=fnPutMonth get=fnGetMonth name="month">
<public:property put=fnPutYear get=fnGetYear name="year">
<public:property put=fnPutMonthLength get=fnGetMonthLength name="monthLength">
<public:property put=fnPutDayLength get=fnGetDayLength name="dayLength">
<public:property put=fnPutFirstDay get=fnGetFirstDay name="firstDay">
<public:property put=fnPutGridCellEffect get=fnGetGridCellEffect name="gridCellEffect">
<public:property put=fnPutGridLinesColor get=fnGetGridLinesColor name="gridLinesColor">
<public:property put=fnPutShowDateSelectors get=fnGetShowDateSelectors name="showDateSelectors">
<public:property put=fnPutShowDays get=fnGetShowDays name="showDays">
<public:property put=fnPutShowTitle get=fnGetShowTitle name="showTitle">
<public:property put=fnPutShowVerticalGrid get=fnGetShowVerticalGrid name="showVerticalGrid">
<public:property put=fnPutShowHorizontalGrid get=fnGetShowHorizontalGrid name="showHorizontalGrid">
<public:property put=fnPutValue get=fnGetValue name="value">
<public:property put=fnPutValueIsNull get=fnGetValueIsNull name="valueIsNull">
<public:property put=fnPutReadOnly get=fnGetReadOnly name="readOnly">
<public:property put=fnPutHoliday get=fnGetHoliday name="holiday">
<public:event id="onChange" name="onchange">
<public:event id="onPropertyChange" name="onpropertychange">
<public:event id="onError" name="onerror">
In addition, I have another file named SolarCalendar.htm
that references 'SolarCalendar.htc' in its code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html XMLNS:IE>
<head>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<STYLE> IE\:Calendar
{
behavior: url(SolarCalendar.htc) ;
-moz-binding: url(bindings.xml#SolarCalendar.htc);
width : 100%;
}
</STYLE>
</head>
<body onkeypress="Window_Keypress()" onload="Window_Onload()" onunload="Window_OnUnload()">
<CENTER><IE:CALENDAR id="cal"></IE:CALENDAR></CENTER>
</body>
</html>
The above code functions correctly in Internet Explorer but fails to work in FireFox. Despite using bindings.xml
successfully in simpler projects, it seems to encounter issues when applied to this specific code. Can you identify what might be causing this problem?