M
mr_burns
Hi,
I have the following code:
set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("xml/categories.xml")
z = '<p>'
for each x in xmlDoc.documentElement.childNodes
z = z + x.text + '<br>'
next
z = z + '</p>'
document.getElementById('title').innerHTML = z
the way my page is set up is that i have linked a external javascript
file (site.js) that has laods of functions that the site relies on
using the following code:
<script src="site.js" content="text/javascript;
charset=iso-8859-1"></script>
i need code that does the same as the above but javascript instead of
vbscript. i could create an alternative file that contains vbscript
like so i guess:
<script src="site_vbscript.js" content="text/vbscript;
charset=iso-8859-1"></script>
.... but it would be better if i could get javascript as i could store
all functions in the one file.
also, i need to obtain not only the text inside the node (x.text) but
also one of the nodes attributes (id ... x.get_attribute('id') or
something like that).
any help? cheers
burnsy
I have the following code:
set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("xml/categories.xml")
z = '<p>'
for each x in xmlDoc.documentElement.childNodes
z = z + x.text + '<br>'
next
z = z + '</p>'
document.getElementById('title').innerHTML = z
the way my page is set up is that i have linked a external javascript
file (site.js) that has laods of functions that the site relies on
using the following code:
<script src="site.js" content="text/javascript;
charset=iso-8859-1"></script>
i need code that does the same as the above but javascript instead of
vbscript. i could create an alternative file that contains vbscript
like so i guess:
<script src="site_vbscript.js" content="text/vbscript;
charset=iso-8859-1"></script>
.... but it would be better if i could get javascript as i could store
all functions in the one file.
also, i need to obtain not only the text inside the node (x.text) but
also one of the nodes attributes (id ... x.get_attribute('id') or
something like that).
any help? cheers
burnsy