Blog Post RSS ?

Blogs » JavaScript & CSS » HTCs and Service Pack 2
 

HTCs and Service Pack 2


  • Save to
    Del.icio.us

by Simon Willison

I haven’t played with XP Service Pack 2 yet due to not having ready access to a Windows smachine that I can upgrade, but it seems that one of the security changes made to IE has greatly increased the importance of serving up the correct Content-Type header. Aldo Hoebon writes about this in HTC components in XP Service Pack 2, and describes how the wrong Content-Type for a proprietary IE HTC file (as seen in the alpha-transparent PNG fix for that browser) can cause the HTC file to have no effect.

This post has 7 responses so far

  1. Nice one, never knew that. HTC is not really standard anyhow, so thats not too much of a problem:)

     
  2. It’s important however, since HTCs are used for the IE7 project, to name a famous example.

     
  3. Yeah leaned all about this the hard way. Problem is that IIS on SP2′d systems or on Win2k3 will not serve files it doesn’t recognise.
    We had this with .VBD files (the old way of running VB apps inside IE)you need to add a mime type for the file you wish to serve ( and in some cases you need to reboot the server)or you’ll get a 404 error…

    Theres info on this at http://www.wwwcoder.com/main/Default.aspx?tabid=68&mid=407&site=1880&parentid=170

     
  4. Just because that the IE7 project uses it doesn’t really make it important. If you want fabulous designs, and want to make the design world a better place, stick with standards.

     
  5. I think webgodjj may be thinking of Microsoft’s next IE — the IE7 project (http://dean.edwards.name/IE7) is specifically useful because it allows you to code to standards and still get IE5+ to recognize your code. Without IE7, I’d have all sorts of CSS hacks throughout my stylesheets in order to make IE comply. CSS hacks may seem like standards, but until they standardize the bugs the hacks rely on I try to stay away.

     
  6. I’m as big a pusher of standards (and firefox ;-) as they come, but in a commercial situation where you’ve got a CMS built for IE6 only, written mostly with .HTC files, this WAS really important. For some of us it’s got to do with money and functionality, not design. In my opinion Microsoft stuffed up by burning the very people they enticed into their new technology years ago.

    So thanks a lot for the info - much appreciated.

     
  7. IE7 no longer uses HTCs. It is now a pure JavaScript solution. Some developers did not have access to their servers and could not make the necessary configurations there.

     

Sponsored Links

Leave a response

You are not logged in, log in with your SitePoint Forum username and password.

-OR- Post Anonymously

* Make sure any code samples are escaped (i.e. ‘<b>’ becomes ‘&lt;b&gt;’).

If not logged in, your comments will be placed in a moderation queue. This means your comment may not appear until one of our moderators approves it.

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Logo Design, Web page Design and more!

99designs

  • Custom logo designs created ‘just for you’.
  • Pick the design you like best.
  • Only pay if you’re satisfied with the result.

Want More Traffic?

Get up to five quotes from qualified SEO specialists, with no obligation!

Get A Free SEO Quote Now!