This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 24, 2011, 7:32 AM
10 Posts
topic has been resolvedResolved

Dojo issues with IE9

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 3
Hi
 
I'm having trouble with all of my Dojo Charts and Dojo Dialogs with IE9 (works fine in compatibility mode though). Is anyone else expirencing the problems too? Domino version is 8.5.2 
 
Regards 
 
Steven 
Mar 24, 2011, 5:22 PM
66 Posts
Re: Dojo issues with IE9
Most of the Dojo tools do not work with IE9 on 8.5.2.
 
The code below can go in the 'beforeRenderResponse' Event on the XPage to force IE8 compatibility...found on Matt White's blog.

//This forces page to load in IE8 compatibility
        try {
           var exCon = facesContext.getExternalContext();
               var response = exCon.getResponse();
               response.setHeader("X-UA-Compatible", "IE=EmulateIE8");
        } catch (e) {
        }
Mar 24, 2011, 5:34 PM
64 Posts
Re: Dojo issues with IE9
- This is what we had to do as well, but I put in a check using dojo.isIE(9, 9) so this hack is only applied if 9 is used.
 
- Problem with this is it's supposed to be circumventable, though I don't recall how.  It is the only "solution" for the nonce.

- The dojo-interest list indicates they have no intention of updating dojo before 1.6 to support this latest M$ debacle, which strikes me as shooting one's self in the foot.  IBM hasn't acted like they're going to do anything about it, either.  In a perfect world people would just avoid ie 9 in droves because it breaks things, but we all know that's not going to happen.  The thing I find vexing is how little anyone seems to care that it utterly borks XPage functionality and the only recourse is some hack of dubious repute.
 
Hope this helps...
Mar 24, 2011, 11:43 PM
10 Posts
Re: Dojo issues with IE9
Thank you David and Ryan for your responses, a great help. I am now using the following in the BeforeRenderResponse event:
 
//This forces page to load in IE8 compatibility
try {
if (context.getUserAgent().isIE(9, 9)) {
           var exCon = facesContext.getExternalContext();
               var response = exCon.getResponse();
               response.setHeader("X-UA-Compatible", "IE=EmulateIE8");
}
} catch (e) {
}
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal