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
Nithya S 1Nithya S 1 

target="_parent" not working in IE

Hi all,
We have an embedded VF page where in users fill out a few fields and click on the save button. In IE, the moment the save button is clicked, the window opens with just the VF page instead of showing up the entire page i.e standard and the VF page. We are using only the standard controller.
Here is the code used for the save button is -
<apex:commandLink value="Save" action="{!save}" target="_parent" styleClass="btn">

This works ok in Chrome, Firefox. But is not retaining the "parent" in IE.

Please assist.

Thanks!
PratikPratik (Salesforce Developers) 
Hi Nithya,

Please do the settings for IE as recomended and then check if it helps.
https://help.salesforce.com/HTViewHelpDoc?id=getstart_browser_ie.htm&language=en_US

Thanks,
Pratik
Nithya S 1Nithya S 1
Hi Pratik, This didn't help. Basically, it is just the first time when the button is clicked that the new window opens. The new window has just the VF page without the standard layout. Subsequently, when the "save" button is clicked, it renders the page correctly along with the Standard layout. Thanks!
Nithya S 1Nithya S 1
Hi all,
Since the VF page isn't working on IE, I changed the commandlink to a command button using -
<apex:commandButton value="Save" action="{!save}" onclick="window.top.location='/{!<object>.id}'; return true"/>
But this behaves very erratically. The values on the record are not being saved everytime the save button is clicked. But at times, the values are being saved.Any pointers?

Thanks!