View unanswered posts | View active topics It is currently Wed Jan 22, 2020 11:00 pm

Reply to topic  [ 2 posts ] 
 [solved]pie not working anymore (strange path issue) 
Author Message

Joined: Thu Oct 25, 2012 5:22 am
Posts: 2
Post [solved]pie not working anymore (strange path issue)
Hi all, i had a strange issue, that now seems solved
in the end, it was a path issue so quite "known" but i ended up with a solution i didn't find anywhere here or on the web, so i'm reporting it if it can help you, just in case...:

yesterday i experimented on apache/php server and it worked great!

i used a syntax like

<STYLE type="text/css">
      @import url("/css/round/base.css");

with this syntax in that CSS file for loading PIE
.round {
   border-radius:8px; behavior: url('../js/');

since the html file is in a subfolder of the docroot.

that setup worked.

then i worked a way to load for different php files that are loaded from different folders (i have to adapt vith PHP their imported CSS files to load from a "js" folder with the right path to that folder, btw, so i use php to write the right CSS "url" pointing to the correct path to for every file served..).

since yesterday i also restarted the apache server a few times and modified its vhost conf because i was (am) having issues with logs rotation, and today...
PIE was working no more!

i investigated all the issues, double-triple checked pats relative to the html, the server was serving htc fine, but added the "AddType text/x-component .htc" anyway.. nothing.

then i tried to put in the same folder of the html file and using, just to check if the path was an issue...

border-radius:8px; behavior: url('');

and it worked AGAIN.

At this point i was sure that it was a path issue, and tried
> every possibile combination of relative paths and slash/backslash: (like './js/', '../js/', '.\js\', '..\js\', 'js/', 'js/') - absurd, but just because nothing else was working anymore
> different styles of quotes (none, single, double)


then, as a colleague of mine suggested, as last resort, i tried to double the slashes in that path and suddenly ZAP! it worked again.

so if everything else fails, try something like this

.round {
   border-radius:8px; behavior: url('..//js//');

it may solve your "absurd" path issue...

just to be some more absurd, this syntax also works here...

.round {
   border-radius:8px; behavior: url('../js//');

.round {
   border-radius:8px; behavior: url('..//js/');

i.e.: it seems that - at least - one slash must be doubled... i know it sounds crazy but it works like that. Maybe it triggers something in server or ie that makes IE find the behaviour file and use it properly...

HTH Marco

Thu Oct 25, 2012 6:01 am

Joined: Thu Oct 25, 2012 5:22 am
Posts: 2
Post Re: [solved]pie not working anymore (strange path issue)
i am adding that here on my setup while
behavior: url('../js/');

does not work, and i have to
behavior: url('..//js//');
or behavior: url('../js//');
or behavior: url('..//js/');

which is all working, this:
behavior: url('../js/a/b/c/d/');

works, and
behavior: url('../js/a/');

this too works.

could it be that calling "behavior" with my kind of url (starting with '..') needs ** at least three slashes ** as a minimum for IE to use its content?

even more puzzled ...


Thu Oct 25, 2012 7:08 am
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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.