I have a web page that attempts to call a piece of Javascript, which
attempts to transform an xml file and an xslt file into Html.
The call is here (A) :
<script language = "JavaScript " src = "customfeed.htm l?Ga_Id=36475"
type="text/javascript"></script>
The script is here (B) :
<script language = "JavaScript " type = "text/javascript">
var dataArray = new Array();
var querystring = window.location .href;
dataArray = window.location .href.split("=" );
for (j=0;j<dataArra y.length;j++)
{
eval(dataArray[j])
}
theXML = new ActiveXObject(" Microsoft.XMLDO M");
theXML.async=fa lse;
theXML.load("xm lfeed.asp?Ga_Id =" + eval(dataArray[1]) );
theXSL = new ActiveXObject(" Microsoft.XMLDO M");
theXSL.async = false;
theXSL.load("st ylesheet01.asp? Ga_Id=" + eval(dataArray[1]) );
document.write( theXML.transfor mNode(theXSL));
</script>
When viewing source on the page, I get (A) instead of what I would expect,
which is an Html table created in the xslt file, and populated with data
from the xml file. Both files have asp extensions as they use asp code. I
have tried to run this script as an html file, it runs in isolation, but not
when called.
Any help would be appreciated
John
attempts to transform an xml file and an xslt file into Html.
The call is here (A) :
<script language = "JavaScript " src = "customfeed.htm l?Ga_Id=36475"
type="text/javascript"></script>
The script is here (B) :
<script language = "JavaScript " type = "text/javascript">
var dataArray = new Array();
var querystring = window.location .href;
dataArray = window.location .href.split("=" );
for (j=0;j<dataArra y.length;j++)
{
eval(dataArray[j])
}
theXML = new ActiveXObject(" Microsoft.XMLDO M");
theXML.async=fa lse;
theXML.load("xm lfeed.asp?Ga_Id =" + eval(dataArray[1]) );
theXSL = new ActiveXObject(" Microsoft.XMLDO M");
theXSL.async = false;
theXSL.load("st ylesheet01.asp? Ga_Id=" + eval(dataArray[1]) );
document.write( theXML.transfor mNode(theXSL));
</script>
When viewing source on the page, I get (A) instead of what I would expect,
which is an Html table created in the xslt file, and populated with data
from the xml file. Both files have asp extensions as they use asp code. I
have tried to run this script as an html file, it runs in isolation, but not
when called.
Any help would be appreciated
John
Comment