Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Need help with passing a parameter Need help with passing a parameterTo: NULL Date: 10/7/2006 12:14:00 AM
I have a code that passes a parameter to my xsl file. It works in IE but how
can I make it work in FireFox. I want to use the if (window.ActiveXObject)
with the code below for IE and else another code for Firefox. Just need that
other code!!!
Here is my sample
<?php
$filter = $_GET[value];
?>
<script>
var xslt = new ActiveXObject("Msxml2.XSLTemplate");
var xslDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
var xslProc;
xslDoc.async = false;
xslDoc.resolveExternals = false;
xslDoc.load("file.xsl");
xslt.stylesheet = xslDoc;
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument");
xmlDoc.async = false;
xmlDoc.resolveExternals = false;
xmlDoc.load("file.xml");
xslProc = xslt.createProcessor();
xslProc.input = xmlDoc;
xslProc.addParameter("filter","<?PHP echo $filter ?>");
xslProc.transform();
document.write(xslProc.output);
</script>
Thanks in advance
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
