function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SkiesnPiesSkiesnPies 

Struggling with IE

Had some problems in IE9 with a VF page being called from a modal popup (works fine in all other browsers). The problem is when I clicked my NEXT button to re-render the page (see example below), it popped up a NEW window (so I now have 2 pop up windows open) instead of re-rendering . 

 

Anyway, when debugging this, I found it was much worse (the page wasn't working at all in IE) so built the following test page to test it with very simple code:

 

<apex:pagecontroller="TestIE"  title="Test IE 2x Pages">

<apex:form>

 

<apex:pageBlockrendered="{!ShowPage2=false}">

PAGE1<br/>

        <apex:outputTextstyleclass="labelCol">Value ($US)</apex:outputText>

        <apex:InputTextid="Value"value="{!DollarValueString}"/>  

</apex:pageBlock>

 

 

<apex:pageBlockrendered="{!ShowPage2=true}">

PAGE2<br/>

        <apex:outputTextstyleclass="labelCol">The Name</apex:outputText>

        <apex:InputTextid="TheName"value="{!TheName}"/>  

</apex:pageBlock>

 

<apex:commandButtonvalue="Next"action="{!ShowPageTwo}"rendered="{!ShowPage2==false}"/>

</apex:form>

</apex:page>

 

then my controller code : 

 

publicwithsharingclass TestIE {

 

public String TheName{get;set;}

public String DollarValueString{get;set;}

public Boolean ShowPage2 {get;set;}

 

// Test Init

public TestIE()

{

TheName = 'Example Name';

DollarValueString = '999';

ShowPage2 = false;

 

} // end init

 

// *********************************************

// *********** Switch To Next Page *************

// *********************************************

public PageReference ShowPageTwo()

{

ShowPage2 = true;

returnnull;

 

} // end method

 

 

} // end class

 

Didn't seem as though I could make that much simpler? Its just 2 screens which change when you click "NEXT".  It works fine in all browsers (I am on Winter13 in a sandbox by the way) but in IE the NEXT button does nothing and when I checked I have a number of JS errors!

 

SCRIPT16385: Not implemented

SfdcCore.js, line 71 character 160
SCRIPT5009: 'Sfdc' is undefined
VFState.js, line 1 character 1
SCRIPT16385: Not implemented

main.js, line 944 character 160
SCRIPT438: Object doesn't support property or method 'hook_isAccessibleMode'
main.js, line 431 character 71
SCRIPT438: Object doesn't support property or method 'hook_isAccessibleMode'
main.js, line 431 character 71
SCRIPT5009: 'Sfdc' is undefined
main.js, line 998 character 35
SCRIPT5009: 'Sfdc' is undefined
testie, line 85 character 1
SCRIPT5009: 'SfdcApp' is undefined
main.js, line 197 character 174

 

I know using IE is asking for trouble but I would have thought standard VF would be ok (the client has it as standard so I need to make it work in IE). ? 

 

Anyone have any suggestions on what the JS errors are and what is wrong with my nice and simple page? Second question I guess is why the new popup window opens but I guess I need to sort the above issue first. Thanks in advance. 

SkiesnPiesSkiesnPies

I have found that putting the browser in "compatability mode" seems to fix the problem with the JS errors (the VF page works OK) but the 2x popup windows problem still exists?

 

Oddly re: the initial problem SF's advise is to NOT use compatability mode according to this page : https://na11.salesforce.com/help/doc/en/getstart_browser_overview.htm   ????