I can't figure out the correct JavaScript to pass the XML data to a popup window and have it trasformed.
Gives me object doesn't support this property or method on
myxml.transform(myxsl.xml)
Here's what I've got
<SCRIPT LANGUAGE="JavaScript">
var oPopup = window.createPopup();
function popupLetters()
{
var oPopBody = oPopup.document.body;
oPopBody.style.backgroundColor = "lightyellow";
oPopBody.style.border = "solid black 1px";
window.alert(myxml.xml);
window.alert(myxsl.xsl);
window.alert(myxml.transform(myxsl.xml));
//oPopBody.innerHTML = myxml.transformnode(myxsl);
//oPopup.show(100, 100, 180, 25, document.body);
}
</SCRIPT>
and my data island looks like
<xml id="myxml"><contentgroup>....data....data....more data....</contentgroup></xml><xml id="myxsl" src="./AdjCont.xsl"></xml>
the script is located in <HEAD> and the data island is just before the </BODY>
help please
thanks
Gives me object doesn't support this property or method on
myxml.transform(myxsl.xml)
Here's what I've got
<SCRIPT LANGUAGE="JavaScript">
var oPopup = window.createPopup();
function popupLetters()
{
var oPopBody = oPopup.document.body;
oPopBody.style.backgroundColor = "lightyellow";
oPopBody.style.border = "solid black 1px";
window.alert(myxml.xml);
window.alert(myxsl.xsl);
window.alert(myxml.transform(myxsl.xml));
//oPopBody.innerHTML = myxml.transformnode(myxsl);
//oPopup.show(100, 100, 180, 25, document.body);
}
</SCRIPT>
and my data island looks like
<xml id="myxml"><contentgroup>....data....data....more data....</contentgroup></xml><xml id="myxsl" src="./AdjCont.xsl"></xml>
the script is located in <HEAD> and the data island is just before the </BODY>
help please
thanks