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
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

boombatower - February 12, 2009 - 23:52

/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

boombatower - September 28, 2009 - 07:42
Version:6.x-2.5» 6.x-2.x-dev
Category:bug report» task
Assigned to:Anonymous» boombatower
Status:needs review» fixed

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

System Message - October 12, 2009 - 07:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.