IE7 opacity doesn't work.
Dewi Morgan - February 12, 2009 - 10:58
| Project: | Click HeatMap |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | critical |
| Assigned: | boombatower |
| Status: | closed |
Jump to:
Description
In IE7 the opacity of the click-displaying png layer is not set.
Got to run to a meeting where I'll be demoing this right NOW, but here's the fix I used:
In click_heatmap.log.inc, replaced:
return ' TRUE)) .'" style="opacity: '. (1 - $_GET['display']['transparency'] * 0.01) .';" />
With:
return ' TRUE)) .'" style="opacity: '. (1 - $_GET['display']['transparency'] * 0.01) .';filter: alpha(opacity = '.$_GET['display']['transparency'].');" />
It means you'll fail some CSS validation checks, but if you want opacity working in IE, it looks like you kinda have to use "alpha(opacity)" even if it's not standard. Workingness trumps validation.
Not a proper patch, I'm afraid.

#1
/me hates having to deviate from standards due to IE/M$.
Obviously I can simply add it may do so, but seriously...what's up with Microsoft...can't get it right by now?
#2
I am using ClickHeat interface now with minimal wrapper...so in their court now...not sure if it works in IE7 with their interface.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.