Bookmark Topic Watch Topic
  • New Topic

Loading xml in Javascript fails  RSS feed

 
karthick ryan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Report post to moderator
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>
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!