By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,340 Members | 1,625 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,340 IT Pros & Developers. It's quick & easy.

access denied to xml on another machine

P: n/a
Hello,
My HTML page loads and alerts an XML document on another machine. If I
request the page by machine name or localhost there is no problem. If
i request by IP access denied error occurs.

I think this is because of that only the documents on same machine can
be loaded.
Is there any way to load xml documents from another machine?
Thanks,

here is my HTML page

<html>
<body>
<script type = text/javascript>
var xml=new ActiveXObject("Microsoft.XMLDOM")
xml.async=false
xml.load("http://195.174.145.91/xml/1.xml")
alert(xml.xml)
</script>

</body>
</html>
if URL of HTML :
http://localhost/1.html --> OK
http://serdar/1.html --> OK
http://198.147.166.110/1.html --> access is denied
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Han
Not XML issue but cross-domain access violation. Do the same in server-side
script on the same domain, and get it from the client-side on the same
domain.

"serdar Sultanoglu" <su**********@yahoo.com> wrote in message
news:c2**************************@posting.google.c om...
Hello,
My HTML page loads and alerts an XML document on another machine. If I
request the page by machine name or localhost there is no problem. If
i request by IP access denied error occurs.

I think this is because of that only the documents on same machine can
be loaded.
Is there any way to load xml documents from another machine?
Thanks,

here is my HTML page

<html>
<body>
<script type = text/javascript>
var xml=new ActiveXObject("Microsoft.XMLDOM")
xml.async=false
xml.load("http://195.174.145.91/xml/1.xml")
alert(xml.xml)
</script>

</body>
</html>
if URL of HTML :
http://localhost/1.html --> OK
http://serdar/1.html --> OK
http://198.147.166.110/1.html --> access is denied

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.