Support Article
"httpRequestAsynch" does not work in Chrome 43+ Browser
SA-13704
Summary
"httpRequestAsynch" method does not work in Chrome 43+ browser.
No error message is thrown or captured. Only execution of the method breaks.
Error Messages
Not Applicable
Steps to Reproduce
1. Create a Control rule and populate the HTML tab with below script.
function Search()
{
var strUrl1="{pxThread.pxReqURI Normal}";
var strUrl1 = requestURI + "?pyActivity=Test-Work-List.Name";
var oSafeUrl1 = SafeURL_createFromURL(strUrl1);
var HasMessage=httpRequestAsynch(oSafeUrl1.toURL(),null,400,1200);
}
2. Add onclick RunScript behavior on a button to call the function "Search()" and execute the script. This works fine until the step above "httpRequestAsynch" method call and the same function call is executing and working as expected in IE8 browser.
3. Try to fetch the run time value from activity execution, by using "httpRequestAsynch" method in PRPC 6.2 SP2 in Chrome 43+ browser.
Root Cause
httpRequestAsync only works in IE. Its a pure async call and requires a callback object with success function (all the processing should be done with this). It was observed from code that the third param was passed as empty that is why it failed.
Resolution
Local-change is to use pega.util.Connect.asyncRequest instead of httpRequestAsync.
Published September 15, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.