Forums
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Author |
Message |
kwooda
Joined: Thu Dec 08, 2011 12:32 am Posts: 2
|
 Detecting PIE
Is there a way to use JavaScript to detect whether PIE is present or not?
|
Thu Dec 08, 2011 12:35 am |
|
 |
xem
Joined: Thu Apr 07, 2011 3:23 am Posts: 73
|
 Re: Detecting PIE
if (window.PIE) { /* pie is present */ } else { /* not */ }
|
Tue Dec 13, 2011 4:00 am |
|
 |
kwooda
Joined: Thu Dec 08, 2011 12:32 am Posts: 2
|
 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 |
|
 |
xem
Joined: Thu Apr 07, 2011 3:23 am Posts: 73
|
 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 |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 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
|
|