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

Force IE9 to use compatibility mode

I have a site that has a problem with IE9 where it blanks the pick list fields and won't save the record.  If I use compatibility mode, the problem goes away.  I have been trying to force the page to load in compatibility mode by adding code to the VF page, but it's not working.  Any suggestions?


I added <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> in various places, but it's not working out.  Here's the first section of the VF page for reference.


<apex:page showHeader="false" sidebar="false"   controller="SVMX_WarrantyCalaimForm_Controller" id="Page1" >

<apex:stylesheet value="{!$Resource.SVMXVF_Resources1}" />


body { margin-top: 1%; margin-right: 0px; margin-bottom: 0px; margin-left: 25px; }
.rowHeight {height:50px}


<script type="text/javascript">
  function customSelectChecked( form,value)
        var i = 0;
        for (i = 0; i < form.elements.length; i++) {
            if (form.elements[i]'selected') > 0 && form.elements[i].disabled == false) {
                form.elements[i].checked = value;
    function customSelectAllOrNoneByCheckbox(form,control)
    {  customSelectChecked( form,control.checked); }
    <apex:form id="Form1">