Navigation

RSS 2.0 New Entries Syndication Feed Atom 0.3 New Entries Syndication Feed

Show blog menu v

 

General

Use it

Documentation

Support

Sibling projects

RIFE powered

Valid XHTML 1.0 Transitional

Valid CSS!

Blogs : Archives

< Omnicore Codeguide 7 has been released, back-in-time debugging becomes mainstream   The dangers of auto-unboxing (part 2) >
Transparent PNG on IE with servlet containers

I successfully used the PNG behaviour hack to make transparent PNG images work effortlessly under Internet Explorer. After working some days on the desigh I decided to finally integrate it in my web application.

To my surprise the behavior didn't work anymore and it took me a fairly long time to find out why. It turns out that Internet Explorer only interpretes .htc files correct when they are served with the 'text/x-component' mime-type. This isn't set up by most servlet containers, so if you intend to use these files make sure to add this to your web.xml file:

<mime-mapping>
    <extension>.htc</extension>
    <mime-type>text/x-component</mime-type>
</mime-mapping>
posted by Geert Bevin in Java on Mar 11, 2004 10:06 PM : 1 comment [permalink]
 

Comments

Re: Transparent PNG on IE with servlet containers
Man!!!
I never figured that OUT!!!
I got the htc extension working in a simple example, but I could never get it plugged into my app. I can not wait to go home tonight and try
!
Thanks

Add a new comment

Comments on this blog entry have been closed.

< Omnicore Codeguide 7 has been released, back-in-time debugging becomes mainstream   The dangers of auto-unboxing (part 2) >
 
 
 
Google
rifers.org web