0
votes

I am having problems with iNotes Calendar on my Intern Explorer (ver 11.0). I have tested it successfully on Firefox and Chrome. I guess it is a bug, but I just need to confirm this and is there any way around. Here is a small piece of code, just to describe the problem:

//tesCalendar.xsp    
<?xml version="1.0" encoding="UTF-8"?>
    <xp:view xmlns:xp="http://www.ibm.com/xsp/core"
        xmlns:xe="http://www.ibm.com/xsp/coreex">
        <xe:calendarView id="calendarView1">
            <xe:this.onNewEntry><![CDATA[
    var calDate = calendar.getDate();
    alert(calDate);]]></xe:this.onNewEntry>
        </xe:calendarView></xp:view>

The problem would be generated when you try to create a new entry (double click on any calendar date). It shows a wrong date, purely randomly. I am using an extension library dated 15-04-2013. Is it probably fixed in the later version?

Any help would really be appreciated.

Edit 1: I tried adding the compatibility mode as suggested by Paul in the comment. But with no luck :(. I followed this question on stack overflow for adding compatibility mode.Here is what I added to my above code.

<xp:this.beforeRenderResponse><![CDATA[#{javascript:  if (context.getUserAgent().isIE()) {
    var response = facesContext.getExternalContext().getResponse();
    response.setHeader("X-UA-Compatible", "IE=8");
  }}]]>
</xp:this.beforeRenderResponse> 

Edit 2: I installed the latest version of Extension Library dated 19-06-2014. But still the same problem. When you create a new event it just displays date randomly. However, it works great with firefox and chrome.

1
Is this in compatibility mode or not? That may change the behaviour, though I'm not sure how feasible it is for your app to change the document mode.Paul Stephen Withers
I have just updated the code with compatibility mode thing with no success. Also, I am not sure, what you mean by document mode in this context. Can you just describe it a bit more?Chintan Parekh
You can change the document mode but can't really switch compatibility mode on or off. See intec.co.uk/…. It's basically what you've done.Paul Stephen Withers
So, what is the solution here? Just accept the bug and ask customers to not use the application in IE?Chintan Parekh

1 Answers

1
votes

Is this a problem for just IE11 or all versions of IE. It sounds like it's a bug, possibly this one http://www.openntf.org/main.nsf/project.xsp?r=project/XPages%20Extension%20Library/discussions/55C1A4828FCB113986257B1D000DF980. You may need to check readme files for when that was fixed.