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

Who is online

Users browsing this forum: No registered users and 11 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum