It should be simple this one.
I want to call an XML file that is in a different folder from the HTML file that is calling it.
So I have the code in my HTML document:
<script language="javascript">
// Load XML
var xml = new ActiveXObject("Microsoft.XMLDOM"
xml.async = false
xml.load("MYFILE.xml"
'in here I want to stick in something like:
'xml.load("..\another\folder\MYFILE.xml"
'but when I do this it doesn't work.
'what am I missing?
'I've tried the full path but that doesn't work either.
// Load the XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM"
xsl.async = false
xsl.load("MYFILE.xsl"
// Transform
document.write(xml.transformNode(xsl))
</script>
Cheers
Dan
I want to call an XML file that is in a different folder from the HTML file that is calling it.
So I have the code in my HTML document:
<script language="javascript">
// Load XML
var xml = new ActiveXObject("Microsoft.XMLDOM"
xml.async = false
xml.load("MYFILE.xml"
'in here I want to stick in something like:
'xml.load("..\another\folder\MYFILE.xml"
'but when I do this it doesn't work.
'what am I missing?
'I've tried the full path but that doesn't work either.
// Load the XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM"
xsl.async = false
xsl.load("MYFILE.xsl"
// Transform
document.write(xml.transformNode(xsl))
</script>
Cheers
Dan