You need to sign in to do that
Don't have an account?
NehaKS
Popup window closes even if error message on popup
Hi,
I have a button save and close on popup window. The data is saved in database and the the window closes.
But if any error messages occurs it still closes the window.
Kindly help me out with this issue
I am closing the popup window using javascript.
<apex:commandbutton action="{!updates}" id="updatebutton" value="Save & Close" style="left:65px;position:relative;" immediate="false" oncomplete="hidepopup(this);" rerender="msg1" />
function hidepopup(cb)
{
var popUp = document.getElementById("showme1");
popUp.style.display = "none";
window.location.href=window.location.href;
}
Is there a way where i can check if my popup window contains page messages.
If pop window has page message then it should not close else it should.
Can i give such kind of condition in javascript.