View Full Version : CalendarPopup.htc not showing in IE7 (sometimes)?

03-14-2008, 01:07 PM
I've been asked to look at a problem with a calendar control on a content driven website we maintain.

Here's the code from the top of the page when it is included.

html xmlns:astutemedia>
<?import namespace="astutemedia" implementation="../../../includes/clientside/calendar/CalendarPopup.htc">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

We have 2 servers, one is for live usages by our clients and the other is for testing by ourselves.

The problem is that on the test box this control works in IE6 and IE7 but on the live box, the control works in IE6 and not in IE7. What happens in IE7 is a box appears with a red x in the corner (like that of a missing image). I managed to get the source from this but all that's displayed is


Should I be looking at IIS settings or is there some specific reason IE7 won't display on one but will on the other?

Many thanks for any suggestions in advance.

03-19-2008, 05:56 PM
Mystery Solved, sadly problem isn't.

IE7 apparently doesn't allow scriptlets to work by default when the site you're visiting is part of the internet security zone. It does however when accessing sites on the intranet zone (hence why our test box works).

The calendarpopup.htc encapsulates the calendar.htc file and using the calendar.htm file as it's content source. It using 'text/x-scriptlet' as the mime type so you need scriptlets enabled to use it. IE6 apparently uses this still and it's being phased out as of IE7.

Anyway, the shortterm fix is

Go to Tools -> IE Options -> Click on Internet Zone -> custom level... button -> Scroll down to ActiveX controls and Plugins -> Turn 'Allow Scriptlets' to enable.

Our problem is telling 4000+ plus users to change this so it unforunately doesn't help us. I hope the above information helps someone else.