- September 22, 2018 at 9:55 pm #36933
How to achieve the below given command line using Salesforce Apex?
It may happen that below tips will not work as lots of time the page header already sent. then how to achieve same result using Apex?
<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE8″ />September 22, 2018 at 9:57 pm #36935shariq #1
Add below line of code in Apex (Constructor)
September 23, 2018 at 4:57 am #37129Parul #2
- This reply was modified 4 months ago by shariq.
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:
Remember that Apex controllers can also be served up as extensions to other custom controllers or standard controllers – so if you need to add this to several pages but don’t want to rewrite the constructor of each controller, you can add one extension, place the above in the constructor – and then add the extension to existing pages without having to manipulate a lot of existing Apex.
Please Register to reply to this topic. /