Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
AIG
US
Last activity: 10 Apr 2017 9:15 EDT
httpRequestAsynch(strUrl) doesnt work in the Confirm dialog on firefox
The below code the http asynch post is not working from the confirm dialog box on firefox 38.2.0 .it works in IE.
setInterval(function() {doAutoSave();}, 60000);
function doAutoSave()
{
var section=pega.u.d.getSectionByName("MasterSection", '', document);
pega.u.d.reloadSection(section,'', '', false, true, '-1', true);
setTimeout(function(){startPost();},10000);
}
function startPost()
{
var res=confirm(" Go ahead Save...Please wait");
if (res==true)
{
var oSafeURL = new SafeURL("Chartis-FW-OneClaimCore-Work-MLR.AutoSave");
var strUrl = oSafeURL.toURL();
httpRequestAsynch(strUrl);
setTimeout(function(){ alert("Completed POST"); }, 3000);
}
else
{alert("res No");
}
}
***Updated by moderator: Lochan to add Categories***