Question

7
Replies
271
Views
AditiM23 Member since 2014 8 posts
Virtusa
Posted: May 19, 2016
Last activity: May 20, 2016
Closed

XMLHTTPRequest  not working for Firefox

I have a control that uses XMLHTTPRequest. It works fine but in Firefox nothing works .

It is as follows:

<%

tools.putSaveValue("LocalText",tools.getActive().getStringValue());

tools.putSaveValue("LocalText1",tools.getActive().getParentPage().getString("pzInsKey"));

String pzInskey=tools.getActive().getParentPage().getString("pzInsKey");

String[] temp=pzInskey.trim().split(" ");

%>

<a href='javascript:void(0)' onclick="viewLOResults('<pega:reference name="$save(LocalText)"/>')">View <% if (temp[1]!=null){ %> <%=temp[1]%><%}%><a>

<script>

function viewLOResults(strKey) {

   var objXmlHttp = new ActiveXObject ("Microsoft.XMLHTTP");

   var oSafeURL= new SafeURL("CHARTIS-FW-GES-Work.SetURLforViewModellingResults",getReqURI());

   oSafeURL.put("key",strKey);

   objXmlHttp.Open( "GET", oSafeURL.toURL(), false);

   objXmlHttp.Send();

   var CognosURL = "";

   var CognosURL = objXmlHttp.responseText;

   if(CognosURL != "")

   {

   pega.desktop.openUrlInWindow(CognosURL, '','',false);

   }  

}

</script>

Low-Code App Development
Moderation Team has archived post
Share this page LinkedIn