
Unknown File Type and IE Locking Up Problem
I'm having an impossible time with PIE. I have my website working perfectly in every browser on mac, Firefox/Chrome on PC, but on IE it's completely busted. In fact the site falls to its knees and locks up becoming completely unusable.
When I pull up the file via absolute path in the address bar on IE 8 it promps me to download the file and says it is an unknown file type.
On IE 7 the website is so broken that I don't even know where to begin. I'm using this with wordpress and my script is as follows in my function.php file.
Code:
/**
* Attach CSS3PIE behavior to elements
* Add elements here that need PIE applied
*/
function ev_render_ie_pie()
{
echo '
<!--[if lte IE 8]>
<style type="text/css" media="screen">
a.sliderButton,a.currentSlide,
a.sliderButton:hover,
#slide-list a,
#slide-list li.current-slide a,
#slide-list a:hover,
#content,
.classBoxShadow,
#sliderBanners,
h3.widgetTitle,
div.widget h2,
#footer,
.boxShadow,
.opacity30,
.opacity50,
#header,
#nav li ul li:first-child a,
.firstMenuItem,
#nav li ul li:last-child a,
.lastMenuItem {
behavior: url('. trailingslashit(get_bloginfo('template_url')).'js/PIE/PIE.htc);
}
</style>
<![endif]-->';
}
add_action('wp_head', 'ev_render_ie_pie', 8);
I've tried it both ways in referencing the file with .php and .htc. Both bring a prompt for me to download the file.
What am I needing to do to fix this? If you want to see the URL you will need to private message me as I'm not allowed to release this URL into the public quite yet. Sorry.