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>