Forums
View unanswered posts | View active topics It is currently Sun Dec 21, 2014 8:47 pm



Reply to topic  [ 5 posts ] 
 PIE.js: currentStyle and window.attachEvent errors 
Author Message

Joined: Mon Mar 21, 2011 1:10 pm
Posts: 1
Post PIE.js: currentStyle and window.attachEvent errors
Hello,
I'm running into the following errors, one is in IE when trying to call PIE.attach(el):
Quote:
Message: 'f.currentStyle' is null or not an object
Line: 63
Char: 438
Code: 0


And this, in FireFox (via FireBug), just by including the script in the page and not even calling it anywhere:
Quote:
window.attachEvent is not a function
PIE.js, Line 11


I'm using jQuery 1.5 and jQuery UI 1.8.1; has anyone else had similar issues?


Mon Mar 21, 2011 1:23 pm
Profile

Joined: Tue Mar 22, 2011 6:04 am
Posts: 1
Post Re: PIE.js: currentStyle and window.attachEvent errors
Quote:
window.attachEvent is not a function
PIE.js, Line 11

Same problem here.... my setup is
jQuery 1.5.1
Modernizr 1.7


Tue Mar 22, 2011 6:07 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1448
Post Re: PIE.js: currentStyle and window.attachEvent errors
Not sure about the first issue. For the second, you'll always want to make sure you load PIE.js within a conditional comment, to prevent non-IE browsers from downloading and attempting to execute it.


Tue Mar 22, 2011 6:22 pm
Profile

Joined: Fri May 27, 2011 1:29 pm
Posts: 1
Post Re: PIE.js: currentStyle and window.attachEvent errors
Riiiiiiight. Just download and put this one line in.....

To make this library really turn-key, the lib itself should do this detection, not require that a bunch of detection to get it to work.

I'd be complaining less if this was actually the picture that's advertised. Yes, I get its a free product. But development team time is not.

Communicate this. Perhaps document via the documentation link on the site.

Your efforts are appreciated.


Fri May 27, 2011 1:35 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1448
Post Re: PIE.js: currentStyle and window.attachEvent errors
@twebb72 I have to say your tone is pretty insulting.

There's actually a reason I've chosen not to add detection like that into the library. In the interest of site performance, nobody wants PIE.js to be downloaded by browsers that don't need it -- you only want IE to download it. There is *no way* for the library itself to do this, so you have to use a conditional comment around the script tag anyway. If there's a conditional comment, then there's no reason to waste file size on detection code that isn't needed.

I agree that the need for this single conditional comment is missing in the documentation for the PIE JS version on http://css3pie.com/documentation/pie-js/, and I will add it there asap. This is of course not an issue with the recommended PIE.htc file in the first place. If having to add those two extra lines in your code is not turn-key enough for you then I don't know what to tell you.


Fri May 27, 2011 2:04 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 4 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.