Activity Forums Salesforce® Discussions If Ie9 Is Not Working With Your Custom Visualforce Page

  • If Ie9 Is Not Working With Your Custom Visualforce Page

    Posted by Aman on September 20, 2018 at 2:53 pm

    If Ie9 Is Not Working With Your Custom Visualforce Page Then How To Tell Your Visualforce Code To Run In Ie8 Compatibility Mode?

    Parul replied 5 years, 7 months ago 3 Members · 2 Replies
  • 2 Replies
  • shariq

    Member
    September 20, 2018 at 2:53 pm

    Hi,

    Add following metatag to pages:

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

    Thanks

  • Parul

    Member
    September 20, 2018 at 4:26 pm

    Adding some points

    Firstly, you might be able to add the following meta tag to your pages:

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

    This will tell IE9 that you would prefer it operate like IE8, and IE8 still works fine.  However, I believe this meta tag needs to be one of the first things declared in the page, and under some situations (like showHeader=true) you may not have control over that.  In that case, you can add the following to the Apex controller:

    Apexpages.currentPage().getHeaders().put('X-UA-Compatible', 'IE=8');

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos