Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Status User Macro Not Working in IE8

Aaron Hurley June 28, 2011

The macro is to display an icon depending on the selected status, for example {status:i} would produce a yellow icon for in-progress. There is also a {status:legend} option that will display all of the icons in a table. Here is the code:

-----

#set ($type = $param0.toUpperCase())

#if ("LEGEND" == $type)

<TABLE>

<TR>

<TD><img src="http://sanitized/icons/bullet_blue.gif" height="8" width="8" alt="planned" /> - planned, not started</TD>

<TD><img src="http://sanitized/icons/bullet_inprogress.gif" height="9" width="9" alt="in progress" /> - in progress</TD>

<TD><img src="http://sanitized/icons/bullet_red.gif" height="8" width="8" alt="at risk" /> - at risk</TD>

<TD><img src="http://sanitized/icons/bullet_done.gif" height="9" width="9" alt="completed" /> - completed</TD>

</TR>

</TABLE>

#elseif ("P" == $type) <img src="http://sanitized/icons/bullet_blue.gif" height="8" width="8" alt="planned" />

#elseif ("D" == $type) <img src="http://sanitized/icons/bullet_done.gif" height="9" width="9" alt="completed" />

#elseif ("I" == $type) <img src="http://sanitized/icons/bullet_inprogress.gif" height="9" width="9" alt="in progress" />

#elseif ("R" == $type) <img src="http://sanitized/icons/bullet_red.gif" height="8" width="8" alt="at risk" />

#else <HR><B>usage: status:LEGEND, P-Planned, D-Done, I-In progress, R-At Risk</B></HR>

#end

-----

I don't understand why this works fine in Chrome and Firefox but not IE, any ideas?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Jo-Anne MacLeod
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2011

We've been having a similar problem with macros and Confluence. We have yet to get it working, However I have been told (and this is untested) that adding the line that follows will solve the problem.

<metahttp-equiv="X-UA-Compatible"content="IE=EmulateIE7"/>

By the way, I have also checked to see ifthe same error exists in IE9 and it behaves the same as IE8 does.

TAGS
AUG Leaders

Atlassian Community Events