Question

7
Replies
293
Views
Aditi Mehta (AditiM23)
Standard Chartered Bank
Technical Lead
Standard Chartered Bank
IN
AditiM23 Member since 2014 8 posts
Standard Chartered Bank
Posted: May 19, 2016
Last activity: May 20, 2016
Posted: 19 May 2016 6:45 EDT
Last activity: 20 May 2016 8:27 EDT
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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.