View unanswered posts | View active topics It is currently March 30th, 2017, 9:56 am



Reply to topic  [ 7 posts ] 
 Not handling behavior: url("xxx.htc") from CSS properly 
Author Message

Joined: November 16th, 2010, 2:08 am
Posts: 3
Post Not handling behavior: url("xxx.htc") from CSS properly
I've been playing around with QuickPHP a bit and I must say it's a great product. There is one limitation that I have stumbled upon.

I have the following link in a css file that does not appear to be handled correctly by QuickPHP:

Code:
.some-class-name{
  behavior: url("/js/htcfile.htc");
}


The line works when I upload to a full blown php server, and when I view page as just a webpage bypassing the webserver all together ( although I may have had to take preceding forward slash off ), but not on QuickPHP. I've moved the "htcfile.htc" around to every conceivable variation in location ( same dir as css, same dir as html, etc ) and it doesn't work anywhere.

I thought that might be something you were interested in.


November 16th, 2010, 2:35 am
Profile
Site Admin

Joined: July 4th, 2008, 2:56 pm
Posts: 226
Post Re: Not handling behavior: url("xxx.htc") from CSS properly
CSS is a client-side thing and webservers (and QuickPHP) generally serve these files as-is.

If you create a test.htc file in your webroot (of QuickPHP) and point your browser to that file, you'll find that QuickPHP will serve it just fine. The only thing I could think of which is different from a "full blown" webserver is not that the webserver is full blown but the fact that its environment is setup differently from your development machine - i.e. paths.


November 16th, 2010, 1:13 pm
Profile

Joined: November 16th, 2010, 2:08 am
Posts: 3
Post Re: Not handling behavior: url("xxx.htc") from CSS properly
Zach, thanks for your thoughts...

Yeah, that's kinda what I thought about the web server just serving up the html and css pages as is. That's what makes this so puzzling to me.

I've put together a little sample to try to demonstrate what I'm talking about. Put both index.html and border-radius.htc into the same directory and view using IE 8. First directly by using the path on your computer ( C:\blah\blah\index.html ). Then try to access it through QuickPhp and see if you can reproduce the issue I've seen.

border-radius.htc download link:
http://code.google.com/p/curved-corner/ ... radius.htc


Code:
/*    index.html
      rounded corner div test
*/
      <html>
   <head>
      <title>Test ".htc" Page</title>
      <style type="text/css">
         .roundy{         
            -moz-border-radius:10px; /* Firefox */
            -webkit-border-radius:10px; /* Safari and chrome */
            -khtml-border-radius:10px; /* Linux browsers */
            border-radius:10px; /* CSS3 */
            behavior:url(border-radius.htc); /* IE */
            
            border: 1px black solid;
            background: white;
         }
      </style>
   </head>
   <body>
      <div class="roundy">
         <br />
         An example of a div with rounded corners.
         <br />
         <br />
      </div>
   </body>
</html>


November 16th, 2010, 4:56 pm
Profile
Site Admin

Joined: July 4th, 2008, 2:56 pm
Posts: 226
Post Re: Not handling behavior: url("xxx.htc") from CSS properly
I'm not familiar with IE - haven't used it for years. I haven't even got it installed in any of my machines and I don't intend to, so I can't test.
But, from http://www.w3schools.com/xml/xml_dont.asp, it's clear that what you're trying to do is IE specific and it's not recommended to begin with.


November 16th, 2010, 9:43 pm
Profile

Joined: November 16th, 2010, 2:08 am
Posts: 3
Post Re: Not handling behavior: url("xxx.htc") from CSS properly
Fair enough. It looks like this method isn't recommended because it is specific to IE. Since the other browswer have native support for rounded corners I'm looking for a IE specific solution. At least IE 9 is supposed to pick up this functionality...

Thanks for looking at this for me.


November 17th, 2010, 3:14 am
Profile

Joined: April 13th, 2015, 8:58 pm
Posts: 2
Post Re: Not handling behavior: url("xxx.htc") from CSS properly
HTC One M9 is not just a smartphone but a DSLR camera as well because it has a wonderful image quality... :twisted: :twisted: :twisted:


April 13th, 2015, 9:10 pm
Profile

Joined: April 13th, 2015, 8:58 pm
Posts: 2
Post Re: Not handling behavior: url("xxx.htc") from CSS properly
Thanks for letting us know.. i was searching for these details..

[url=http://egypt.souqmobi.com/product/htc-one-m9-price-in-egypt--3073420]HTC One M9 Price in Egypt[/url]


April 21st, 2015, 9:39 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron
Powered by phpBB.