Forums
View unanswered posts | View active topics It is currently Mon Jul 28, 2014 10:27 am



Reply to topic  [ 2 posts ] 
 Can't seem to make it run at all in IE8 
Author Message

Joined: Mon Oct 29, 2012 2:10 am
Posts: 2
Post Can't seem to make it run at all in IE8
Hi guys

I'm rather new in web development, and really need some rounded corners on a button.
I found css3pie and really like it, the only problem is that I can't seem to make it run.

I started a new project (asp mvc4 template) and included the pie.js (in Scripts) and pie.htc (in Content).
In index.cshtml I wrote
Code:
//included the script
<script type="text/javascript" src="~/Scripts/PIE.js"></script>

//wrote a new style
<style type="text/css">
    .xxxx
    {
    background: #EEE;
    padding: 2em;
    -moz-border-radius: 1em;
    -webkit-border-radius: 1em;
    border-radius: 1em;
    behavior: url(../../Content/PIE.htc);
    }
</style>

//apply it to a button
<button class="xxxx">Click</button>


The expected behavior on IE8 is a button with rounded corners.
If the behavior path is correct (relative to cshtml) all I got is the text "Click", not even the background of the button. If the behavior path is wrong, I got a button like in the style but without rounded corners.

If I check with the development tools of the browser, the js is included, so that's not it.

Maybe it has something to do with the htc file? I don't know.

Any help would be appreciated.
Best regards,
Daniel


Mon Oct 29, 2012 2:18 am
Profile

Joined: Mon Oct 29, 2012 2:10 am
Posts: 2
Post Re: Can't seem to make it run at all in IE8
If someone else is interested, issue was with ASP MVC. Found answer here:
http://stackoverflow.com/questions/4870 ... e-htc-file

Thanks


Mon Oct 29, 2012 4:04 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Yahoo [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.