Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us