Getting OneUi V2.01 to work with Internet Explorer 6
Sean Cull 17 March 2010 16:59:19
I have been struggling to get an XPage application to work well with Internet Explorer 6 using the OneUIV2 style sheet. There is some useful documentation from IBM which explains that the IE6 CSS hacks are done differently in this V2 of OneUI.
The answer is to add this code to your xpage. In my case I added it to a banner custom control using a computed field
<xp:text escape="false" id="CSS_Hack"><xp:this.value><![CDATA[${javascript:"<!--[if IE 6]><script type=\"text/javascript\">document.getElementsByTagName(\"html\")[0].className+=\" lotusui_ie lotusui_ie6\";</script><![endif]--><!--[if IE 7]><script type=\"text/javascript\">document.getElementsByTagName(\"html\")[0].className+=\" lotusui_ie lotusui_ie7\";</script><![endif]--><!-- END exampleHead.htm -->" }]]></xp:this.value></xp:text>
Hope this helps someone else who has been pulling their hair out with ie6.
Sean
p.s. you can also use the following SSJS to detect ie6
if (context.getUserAgent().isIE(0,6)) {
// do something like suggest a better browser
}
8.5.1 Dev Tips Lotus XPages
2Sean Cull 17.03.2010 17:50:27 I agree but @Declan I absolutely agree but this is for our support ticket system and most of our customers appear to be on ie6 - I was quite surprised. The big blue chips seem slowest to change as well. Sean
3Declan Lynch 17.03.2010 19:35:40 But if you write your apps to support IE6.. That's my point, if you write your apps to support IE6 then the clients will have no reason for upgrading to a standards based browser. Flickr, Facebook, Google Docs, etc are all starting to phase out support for IE6 and all the other web application developers need to do the same otherwise IE6 is here to stay. There is NO excuse for any enterprise to still be on IE6. With easy to deploy systems like Windows Server Update Services ( WSUS ) any enterprise can deploy IE8 to all their machines without having to lift a finger.
4chris 12.05.2010 14:49:35 Thanks a lot Thanks, because me, I am pull their hair out!
5Nathan T. Freeman 26.05.2010 12:49:45 Somewhere at your customers "...this is for our support ticket system and most of our customers appear to be on ie6..." $50 says that somewhere inside at least one of your customers, there's an IT person arguing that the reason they can' upgrade to IE8 is "because FoCul's ticketing system requires IE6." Interoperability is often misinterpreted as requirement.
6Sean Cull 26.05.2010 13:58:01 @Nathan @Nathan, I am usng some code ( might even be yours ! )to display a rd banner explaining that their "old" web browser can only access limited functionalty but your point is a good one.
Please leave a comment


1Declan Lynch 17.03.2010 17:30:21 IE6 Is End of Life
To be honest I'd rather just dump support for IE6 in all future web development projects. It is not worth the hassle trying to support it.
IE6 is EOL as far as MS are concerned. There won't be any updates for it and it's total lack of standards support means that you just end up pulling your hair out trying to make it work.
The less people support it the quicker it will die and disappear.