473,395 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem with accessing a file on server!

I have XML file (myData.xml) and a HTML page (myPage.htm) in the same folder named mySimplePage. I want to read data from this XML file and display it's content on HTML page. I up the folder mySimplePage to localhost by Create a Virtual Directory / mySimplePage...I have some scripts that:
Expand|Select|Wrap|Line Numbers
  1. function loadXML()
  2. {
  3.     var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  4.         xmlDoc.async="false";
  5.     xmlDoc.load("http://localhost/mySimplePage/myData.xml"); //error here =>Access is Denied
  6.     var root=xmlDoc.documentElement;    
  7. }  
I don't know why. Please help me.
Thanks.
Apr 3 '07 #1
4 948
More information:
When I type http://localhost/mySimplePage/myData.xml, I can browse the content of this file.
Apr 3 '07 #2
dmjpro
2,476 2GB
i don't understand why r u use ActivexObject as it only supported by IE.....

u can try this .....

<a href = 'path_with_file_name' target = '_blank'>Show Me</a>

now this is the resposibility of browser to show the content of xml file..okkkkk

best of luck
Apr 3 '07 #3
i don't understand why r u use ActivexObject as it only supported by IE.....

u can try this .....

<a href = 'path_with_file_name' target = '_blank'>Show Me</a>

now this is the resposibility of browser to show the content of xml file..okkkkk

best of luck
But I don't understand why I can't access this XML file (I use IE)?
Apr 4 '07 #4
acoder
16,027 Expert Mod 8TB
Which version of IE are you using?

You may need to change some settings.
Apr 4 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Yazeed | last post by:
I developed a web application using asp.net which send an email using "SmtpMail" and it was working perfectly . when i upload it to the webhosint i bought , it didn't work because of email...
3
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different...
2
by: Brian Cooper | last post by:
I am trying to determine a permission problem trying to write a text file from one web server to another. Here is the situation: We have two domains in place one is Active Directory and the...
5
by: Daniel Corbett | last post by:
I am trying to save a file dynamically created in a webpage. I get the following headers, but cannot figure out how to save the attachment. I am basically trying to replicate what internet...
4
by: Steven | last post by:
I have a unmanaged (written in Delphi 6) COM+ Web Service I am accessing through C#.NET. The Web Service takes an string containing a formatted xml read through StreamReader. The problem I am...
14
by: Jurgen Haan | last post by:
Hey hey all.. I'm using a DB2 8.2 in an 64bit environment in SLES9. Server is a HP Proliant DL385 For storage I'm using a NetApp Fas250 filer. using a few NFS volumes to store the database.
11
by: E.T. Grey | last post by:
Hi, I have an interesting problem. I have a (LARGE) set of historical data that I want to keep on a central server, as several separate files. I want a client process to be able to request the...
3
by: Jeff | last post by:
Hey asp.net 2.0 In the source I posted below, there is a GridView (look at the bottom of the script): <asp:GridView ID="gvwOnline" runat="server"> </asp:GridView> I'm trying to assign a...
1
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and...
13
yolenman
by: yolenman | last post by:
Hello - This is my first posting to this group, so please bear with me. Also note, that while I'm intelligent, databases are not in my field of knowledge. I'm working with a small limousine...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.