Forums Register Login

Loading xml in Javascript fails

+Pie Number of slices to send: Send
Hi,
This is the piece of code which i used. Please go through it. This doesnt seem to work.

<script language="Javascript">
<!--
var xmlObj;
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");

xmlDoc.async = false;
xmlDoc.load("web.xml");
// The xml file is present in the same folder where this jsp file is present

xmlObj = xmlDoc.documentElement;
alert(xmlObj); //i get a "null" here

-->
<script>
+Pie Number of slices to send: Send
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate post in the XML forum, since the question has nothing to do with JSP.
I think I'll just lie down here for a second. And ponder this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 884 times.
Similar Threads
how to open xml file into html page
Loading xml in JavaScript Fails
Reading xml data in JSP
Looping XMLHttpRequest
Problem using Microsoft.XMLDOM, getting status as 'undefined'
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:19:57.