S
Sharon
Hi!
After transforming XML to CSV format I open an HTA to save the CSV to
the client. All goes well, the function looks like this:
function buttonExportClick()
{
var xslt = new ActiveXObject('Msxml2.XSLTemplate.3.0');
var s = new ActiveXObject('msxml2.FreeThreadedDOMDocument.3.0');
s.async=false;
s.load("/lib/xtable/convert.xsl");
var xslProc;
xslt.stylesheet = s;
var xmlDoc = document.XMLDocument;
if (xmlDoc==null)
{xmlDoc=navigator.XMLDocument};
xslProc = xslt.createProcessor();
xslProc.input = xmlDoc;
xslProc.transform();
output = xslProc.output;
var newwin = window.open('/lib/xtable/htatest.hta');
}
However, to be able to save the CSV I need to pass the variable
'output' (which is the transformation output) to the HTA. I have tried
several ways to do this, but none of them will work. Can anyone help
me? I hope someone knows how to do this, thanks in advance!
Sharon
After transforming XML to CSV format I open an HTA to save the CSV to
the client. All goes well, the function looks like this:
function buttonExportClick()
{
var xslt = new ActiveXObject('Msxml2.XSLTemplate.3.0');
var s = new ActiveXObject('msxml2.FreeThreadedDOMDocument.3.0');
s.async=false;
s.load("/lib/xtable/convert.xsl");
var xslProc;
xslt.stylesheet = s;
var xmlDoc = document.XMLDocument;
if (xmlDoc==null)
{xmlDoc=navigator.XMLDocument};
xslProc = xslt.createProcessor();
xslProc.input = xmlDoc;
xslProc.transform();
output = xslProc.output;
var newwin = window.open('/lib/xtable/htatest.hta');
}
However, to be able to save the CSV I need to pass the variable
'output' (which is the transformation output) to the HTA. I have tried
several ways to do this, but none of them will work. Can anyone help
me? I hope someone knows how to do this, thanks in advance!
Sharon