Hi there i have a code which runs perfectly on IE but not on firefox or safari:
[CODE]function applyXSLTWithParam(xmlFileName, xslFileName, paramName, paramValue)
{
var objXML;
var objXSLT;
var objxsltTemplate;
var objxsltProcessor;
try
{
objXML = new ActiveXObject(“MSXML2.DOMDocument.3.0”);
objXML.async = false;
objXML.validateOnParse = false;
objXSLT = new ActiveXObject(“MSXML2.FreeThreadedDOMDocument.3.0”);
objXSLT.async = false;
objXSLT.validateOnParse = false;
//Load XML and XSLT documents
objXML.load(xmlFileName);
objXSLT.load(xslFileName);
objxsltTemplate = new ActiveXObject(“MSXML2.XSLTemplate.3.0”);
objxsltTemplate.stylesheet = objXSLT;
objxsltProcessor = objxsltTemplate.createProcessor();
objxsltProcessor.input = objXML;
objxsltProcessor.addParameter(paramName, paramValue);
objxsltProcessor.transform();
return objxsltProcessor.output;
}
catch(e)
{
//error handling
}
}
function GetEmpList()
{
empList.innerHTML = applyXSLT(“lijn.xml”, “EmpForHTML1.xsl”);
}
function showEmpDetails(empID)
{
empDetails.innerHTML = applyXSLTWithParam(“wo.xml”, “EmpForHTML2.xsl”, “empID”, empID);
}
//–>
What needs to be changed for getting this to work in Firefox/Safari?