Closed (fixed)
Project:
Facelift Image Replacement Integration
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2008 at 19:46 UTC
Updated:
14 Jul 2012 at 23:19 UTC
I've run through a lot of browsers and noticed that this module currently doesn't work in IE7 when that works in FLIR before integration.
Opera also doesn't work but it seems to have issues working correctly in FLIR at the moment.
Comments
Comment #1
kevinquillen commentedThis has to do with this line of jQuery:
$("h2").each( function() { FLIR.replace(this); } );
IE says that 'Object does not support this property or method'. I think if you find an equivalent statement in jQuery it will suit. This seems to be the issue, as you said the FLIR examples work in IE 6 and 7 on the creators website, Opera 9+ as well.
I am going to try this the normal way and see what happens.
Comment #2
kevinquillen commentedNo go. I tried the regular method and still got the same error (followed example on here: http://facelift.mawhorter.net/quick-start/)
Comment #3
btopro commentedYa, that's the issue I'm having it on too. Not sure why though because his original code on the examples page works in Opera (sorta) and IE7 (completely).
Comment #4
kevinquillen commentedYeah, I am puzzled as well. The jQuery format isn't compatible for IE.
Comment #5
kevinquillen commentedWell, now I am not even using the module at all and still getting the same error.
Comment #6
kevinquillen commentedI think I've got it.
I commented out this line (approx line 486) in flir.js and this kicked it in for IE7:
Now I can see it right in IE6 and 7 and Opera 9+.
Comment #7
cmawhorter commentedI forgot that was in there. It was my hack to get something displaying when you had a font-size set in EMs. You can comment it out safely. It was just to keep the rendered font size from being larger than it is supposed to be (if you had an h1 with a padding-top: 100px then the rendered font would be 100px+padding-bottom+font size on page).
I'll jot this down and get it fixed for the next version.
Comment #8
btopro commentedIs the fix supplied on the facelift forums: http://forums.mawhorter.net/viewtopic.php?id=11
I'll try this and if it doesn't work then i'll try just commenting out the code.
Comment #9
btopro commentedWorks in IE7 now. New version will reflect this
Comment #10
wiltech commentedIts not displaying in opera 9.50 is there any fix on it?
Comment #11
btopro commentedUnfortunately not, it's a known issue and sadly one that goes deeper then this project because it's an issue with both Flir and jQuery. What happens is that the css('font-family') function doesn't always return the active font (aka if the font is changed dynamically the way this module does). So it always reflects Arial as the font instead of the one that you try to override arial with.
Comment #12
cmawhorter commentedI have a fix for you guys in regards to Opera.
$("h2").each( function() { FLIR.replace(this, new FLIRStyle({ cFont:'yourfontname' }) ); } );
The problem with Opera is a CSS/Javascript problem so this just bypasses it and allows Facelift to work.
Comment #13
btopro commentedOhhh... I see what you're saying there. You bipass css all together and just tell it exactly what font to use.....
This is a MUCH better solution and will work in a lot more browsers / configurations. I can also roll this in w/ the ability to set multiple items to different fonts a lot easier bc of the css bipass.. Nice work!
Comment #14
btopro commentedWorks a lot better now. Only ones w/ issues at IE5.5 and IE6 (at times).
Comment #15
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.