You need to sign in to do that
Don't have an account?

How to stop to refresh the page after done with the "Action" method, Is any forcestop to refresh the page?
Hello Folks,
I was facing an issue with my loading of visualforce page. I have executed the javascript, from the javascript iam executing action method. After executing that action method, again my page is reloading but i just want to stop after execution of action method.
In the end of my action method the below code is executing correctly::
if(prdctsWithQuantity.size()>0){
currentStep='2';
}
VF Page:
<script type="text/javascript">
function showRelatedProducts(slctrcrd){
var eterm=document.getElementById('{!$Component.frm:pb0:pblksctn:pbsitm:pfmly}').value;
if(eterm=='')
{
alert('You have to Select Product Family');
}
else{
callprdcts();
}
}
</script>
<apex:actionFunction action="{!showSelectedProductFamilyRecords}" name="callprdcts" reRender="frm"/>
Actually it is showing the second step page, but again coming back to first step page. How to stop after the above logic execution..
Suggest me, Thanks in advance !!
I was facing an issue with my loading of visualforce page. I have executed the javascript, from the javascript iam executing action method. After executing that action method, again my page is reloading but i just want to stop after execution of action method.
In the end of my action method the below code is executing correctly::
if(prdctsWithQuantity.size()>0){
currentStep='2';
}
VF Page:
<script type="text/javascript">
function showRelatedProducts(slctrcrd){
var eterm=document.getElementById('{!$Component.frm:pb0:pblksctn:pbsitm:pfmly}').value;
if(eterm=='')
{
alert('You have to Select Product Family');
}
else{
callprdcts();
}
}
</script>
<apex:actionFunction action="{!showSelectedProductFamilyRecords}" name="callprdcts" reRender="frm"/>
Actually it is showing the second step page, but again coming back to first step page. How to stop after the above logic execution..
Suggest me, Thanks in advance !!
Please share your entire code here...class code as well...
thanks,
Sandeep
Use reRender = "false",
<apex:actionFunction action="{!showSelectedProductFamilyRecords}" name="callprdcts" reRender="false"/>
Earlier it used to show second section and it come back to first section. This time even it is not showing secoond section after clicking the button on first page.
If possible, please have a look on it and update me..
Thanks.