Forums
View unanswered posts | View active topics It is currently Fri Oct 31, 2014 7:37 am



Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
 behaviour file location 
Author Message

Joined: Thu Jul 15, 2010 4:36 pm
Posts: 4
Post behaviour file location
I am using modX CMS and having problems with getting PIE to work. I suspect the behaviour file is not being found (but don't know how to confirm this with IE dev tools or even if it's possible to). My css is
Code:
.shadowTRBL {
   -webkit-box-shadow: #444 0px 0px 10px;   
   box-shadow: #444 0px 0px 10px;
   behavior: url(/assets/css/PIE.php);
}

which renders fine on Chrome (webkit).

/home/username/public_html/assets/css is the location of both my .css file and the PIE.php and PIE.htc files.

I've also tried using the .htc file with no luck :(

Any help would be really appreciated


Thu Jul 15, 2010 4:43 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: behaviour file location
I'm not familiar with modX so I can't say if there might be any conflict.

Couple things to try:

1) If you go to http://yourdomain.com/assets/css/PIE.php with your browser, what do you get?

2) If that returned you the content of PIE.htc, then: In IE with the page loaded, type the following in the URL bar and press enter:

Code:
javascript:alert(window.PIE);void 0;


Thu Jul 15, 2010 6:26 pm
Profile

Joined: Thu Jul 15, 2010 4:36 pm
Posts: 4
Post Re: behaviour file location
Thanks,
yes, step 1 returns PIE.htc, step two returns an alert containing the text [object Object]. What does this mean?


Thu Jul 15, 2010 6:54 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: behaviour file location
It means that the behavior file is being found and properly loaded. That's good news!

Now to troubleshoot why you're not seeing any rendering. My hunch would be the classic z-index issue (described in detail at the top of the Known Issues page). Try adding position:relative to your element, hopefully that will bring the shadow forward.


Thu Jul 15, 2010 8:24 pm
Profile

Joined: Thu Jul 15, 2010 4:36 pm
Posts: 4
Post Re: behaviour file location
Thank You! I did read that z-index issue but thought the default position: was :relative - I now see it is actually :static.
The result is superb! Cheers and thanks to the author (yourself?) :)


Thu Jul 15, 2010 9:24 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: behaviour file location
Thanks! Glad to help.


Fri Jul 16, 2010 7:32 am
Profile

Joined: Fri Jul 16, 2010 8:45 am
Posts: 1
Post Re: behaviour file location
muzzer wrote:
Thanks,
yes, step 1 returns PIE.htc, step two returns an alert containing the text [object Object]. What does this mean?


Step one I did "mydomain/wp-content/themes/theme/PIE.php. It returns the file.

My "step two" returns "Undefined"... bad news...

How do I fix it?


Fri Jul 16, 2010 9:38 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: behaviour file location
ricardobaeta wrote:
muzzer wrote:
Thanks,
Step one I did "mydomain/wp-content/themes/theme/PIE.php. It returns the file.

My "step two" returns "Undefined"... bad news...


How are you referencing the path in your behavior url()?

Gordon Brander has written up a great tip for using PIE in Wordpress themes, over in the General Discussion forum. That might be of help to you.


Sat Jul 17, 2010 7:43 am
Profile

Joined: Thu Jan 20, 2011 4:47 pm
Posts: 16
Post Re: behaviour file location
I've done the tests mentioned in Jason's post, and both are working fine so I know it's being called for both CSS3 elements #footer-container and input.button in the footer and the comments input button (there are three alerts firing too for good measure):

http://www.redkitecreative.com/projects/rk2010/2011/01/

But I don't see the rounded corners on #footer-container or the Sign Up button in the footer, or on the comments button. All three have position: relative. Can someone help me iron out the last issue(s) here?


Sat Jan 22, 2011 5:59 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: behaviour file location
@kanjigirl: it's easier if you choose a single forum topic to post in, so I don't have to keep following you around. ;)

It appears your footer is using a CSS filter. You must not do this, as it covers up PIE's rendering and cannot be made to obey the rounded corners.


Sat Jan 22, 2011 6:13 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ]  Go to page 1, 2  Next

Who is online

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