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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help: Taking XML from another site

Status
Not open for further replies.

fhlee

Technical User
Jan 23, 2002
133
TW
Hi,

Platform: .NET ASP

I have this problem... I have website A which has an SQL database containing a list of Fotball Matches and all the players in it. In the same site, I have an aspx which will stream an XML file out: getPlayers.aspx -->this is a server side program that streams XML content to the browser/client.

Now, I have webSite B, a HTML, pullPlayer.html which has an inline client script which will open the getPlayers.aspx using the XMLDOM object.

vsXMLFilePath = "http:/voXMLFile = new ActiveXObject("Microsoft.XMLDOM");
voXMLFile.async = false;
voXMLFile.validateOnParse = true;
voXMLFile.load( vsXMLFilePath + "?MatchID=" + viMatchID );

I try this, but there is an error saying "ACCESS DENIED". The same script runs on website A. How can I prevent this? URGENT. Many thanks in advance.


regards,
- Joseph

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
 
You're trying to load an asp file into your XML object. Thats why you get access denied, because you can't access ASP's. The XML object will not run the ASP, it will think the ASP should be an XML file. You need to use the XMLHTTP object to get the ASP to run:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top