Forums
View unanswered posts | View active topics It is currently Sat Oct 25, 2014 5:33 pm



Reply to topic  [ 4 posts ] 
 Detecting PIE 
Author Message

Joined: Thu Dec 08, 2011 12:32 am
Posts: 2
Post Detecting PIE
Is there a way to use JavaScript to detect whether PIE is present or not?


Thu Dec 08, 2011 12:35 am
Profile

Joined: Thu Apr 07, 2011 3:23 am
Posts: 73
Post Re: Detecting PIE
if (window.PIE) { /* pie is present */ }
else { /* not */ }


Tue Dec 13, 2011 4:00 am
Profile

Joined: Thu Dec 08, 2011 12:32 am
Posts: 2
Post Re: Detecting PIE
Unfortunately, that appears to be unreliable, as window.PIE does not get defined until a style rule that uses it is invoked.
If I load PIE.js instead of specifying PIE.htc in style rules, will that eliminate the need to specify behavior: url(PIE.htc)?


Tue Dec 13, 2011 7:35 pm
Profile

Joined: Thu Apr 07, 2011 3:23 am
Posts: 73
Post Re: Detecting PIE
yes. With pie.js you just have to do PIE.attach(element); instead of the htc behavior.

I don't understand why you'd need to "detect pie". If PIE.js is loaded, PIE is there (for IE 6-9), else it's not there...


Thu Dec 22, 2011 3:59 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 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.