Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load xml file into powerprompt html page with javascript

Status
Not open for further replies.

rigged

Programmer
Jul 24, 2003
6
0
0
US
I'm trying to load xml data from a separate page into a html page in powerprompts.
I can load a string like;
var xmlDoc = new ActiveXObject(&quot;Microsoft.XMLDOM&quot;); xmlDoc.loadXML(&quot;<employee><tag1>GREEN</tag1></employee>&quot;);

this works fine.

I would like to load xml data from a separate html page.
xmlDoc.loadXML(&quot;xmlFile.xml&quot;);
always comes back null.

xmlDoc.loadXML(&quot;<%Response.Write(App.Path)%>xmlFile.xml&quot;);
won't work either.

Eventually, I would like to build my xml data on the server side and read it on the client side, thus I could read a database quickly.
Can this be done?

Any help would be greatly appreciated.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top