You need to sign in to do that
Don't have an account?
vck01
Action function of iframe Page not working in Mozilla
Hi guys,
I have a vf page(say container) in which i have used iframe where the source is another visual force page.I am trying to call the action functon in iframe from the container page. It's working perfectly fine in the Internet Explorer but not working in other browsers.I am not able to figure out what the issue could be.Here is the example sample of what i did.Please help me out in solving this issue. Thanks in Advance!!
Container Page:
<apex:page standardController="Account" sidebar="false" showHeader="false" extensions="testWizard" id="pgtest" cache="true" >
<apex:form id="frmSupplier1" >
<apex:pageBlock id="pgSupplier" mode="detail" >
<apex:pageBlockButtons >
<apex:commandButton action="{!previous}" value="previous" onclick="return document.getElementById('testgrid').contentWindow.callFromOtherPagetoSave();" />
<apex:commandButton action="{!saveAndNext}" value="next" onclick="return document.getElementById('testgrid').contentWindow.callFromOtherPagetoSave();" />
</apex:pageBlockButtons>
<iframe width="100%" class="autoHeight" frameborder="0" src="{!$Page.Base_VFP_test}?id={!supplier.Id}&inline=1 name="testgrid" id="testgrid" />
</apex:pageBlock>
</apex:form>
</apex:page>
Iframe page
<apex:page controller=Account extension="class_testgrid">
<script>
function callFromOtherPagetoSave()
{
savethegrid();
return true;
}
</script>
<apex:actionfunction action="{!savethegrid}" id="savethegrid1"/>
----Some code here ---
</apex:page>
Hi there,
I'm coming across a similar issue now. Did you ever find a solution for this problem?