Skip to main content link. Accesskey S

XPages Wiki

Submit Search

YouAtNotes XPages Wiki


Home > Getting ready for production > Browser compatibility

Browser compatibility

ShowTable of Contents

Internet Explorer 8


IE 8 is supported since Domino 8.5.1.
You can force IE8 to act like IE7 by using this code in beforeRenderResponse event:

// first option uses compatibility mode, second option too but stronger
// X-UA-Compatible: IE=7
// X-UA-Compatible: IE=EmulateIE7
if (context.getUserAgent().isIE(8, 8)) {
  var exCon = facesContext.getExternalContext();
  var response = exCon.getResponse();
  response.setHeader("X-UA-Compatible", "IE=EmulateIE7");
}

Redirecting to another page for special browser like iPhone


Found in Dec's Blog:

Use some code like this in beforePageLoad event:

    var uAgent = context.getUserAgent().getUserAgent();

    if (uAgent.match('iPhone') != null){
           context.redirectToPage('/iPhone.xsp');
    }


In a theme you could use a special CSS for a special browser:

<resource rendered="#{javascript:context.getUserAgent().getUserAgent().match('iPhone')}">
<content-type>text/css</content-type>
<href>iPhone.css</href>
</resource>

Browser sniffing


You can use dojo to check which browser a visitor uses:

dojo.isIE
dojo.isMozilla
dojo.isFF
dojo.isOpera
dojo.isSafari
dojo.isKhtml


Found at Bob Balfe
See what's possible with Xpages.
Have a look at our ServiceCommunicator website
and the YouAtNotes Support.
Use  searchlotus.com  for news in the Web related to Lotus Notes and Domino,
and to search those sites.
Check  youatnotes.com  for great Lotus Notes, Domino and XPages software.
Did this wiki help you?
Did this saved you time? Express your gratitude by making a donation:
PayPal - The safer, easier way to pay online!