I have got it to work on my local installation. You need to put the .htc and
blank.gif in you root webapp folder.

There seems to be a "problem" with the way that IE handles urls for
behaviours. I serve my css as a resource in wicket, which means that the url
is something like:

http://localhost:8080/resources/dk.frankbille.teachus.frontend.pages.BasePage/resources/main.css

If I put iepngfix.htc and blank.gif in the same folder (
dk.frankbille.teachus.frontend.pages.BasePage/resources), then IE doesn't
load it. It seems that IE thinks that url(iepngfix.htc) means
url(/iepngfix.htc) even if you try to say url(./iepngfix.htc).

So bottom line (for now) is:

put iepngfix.htc and blank.gif in your webapp root.

Frank

P.s. Another solution could be to try writing the absolute URL for
iepngfix.htc in the css/style and see if that works. Haven't tried it yet.



On 2/16/07, Zágoni Elemér <[EMAIL PROTECTED]> wrote:


Hi,

I'm new to Wicket (using Wicket ver. 1.2.4).

I tried to include an htc file (Internet Explorer behavior file) in a css
(to fix incorrect png handling in IE).
I did it like below:

*img, div {behavior:url(../htc/iepngfix.htc)}

the browser cannot find the referenced htc file. The strange thing is that
I
refer to various images (in the same css) the same way, I mean:
background-image:url(../img/background.png), and the images are found.

Could anyone tell me why the above technique did not work for *.htc files?

Thanx in advance.
--
View this message in context:
http://www.nabble.com/How-to-include-*.htc-files-in-css-files--tf3238484.html#a9001326
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to