Question

7
Replies
1547
Views
RanjithkumarC Member since 2013 19 posts
AIG
Posted: March 9, 2016
Last activity: April 10, 2017
Closed
Solved

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***

User Interface
Moderation Team has archived post
Share this page LinkedIn