Forums
View unanswered posts | View active topics It is currently Thu Jul 31, 2014 3:40 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 PIE.htc on apache/php server and it worked great!

i used a syntax like

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

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

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


that setup worked.

then i worked a way to load PIE.htc for different php files that are loaded from different folders (i have to adapt vith PHP their imported CSS files to load PIE.htc 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 PIE.htc 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 PIE.htc in the same folder of the html file and using, just to check if the path was an issue...

Code:
border-radius:8px; behavior: url('PIE.htc');


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/PIE.htc', '../js/PIE.htc', '.\js\PIE.htc', '..\js\PIE.htc', 'js/PIE.htc', 'js/PIE.htc') - absurd, but just because nothing else was working anymore
> different styles of quotes (none, single, double)

...nothing

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

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



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

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

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


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


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
Profile

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
Code:
behavior: url('../js/PIE.htc');

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

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

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

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 ...

Marco


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

Who is online

Users browsing this forum: Google [Bot] and 3 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.