Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7911983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:27:13+00:00 2026-06-03T13:27:13+00:00

I have a static web server that has a webpage that needs to pull

  • 0

I have a static web server that has a webpage that needs to pull data from an XML file (via Javascript) on a file server. However, I can’t seem to connect to the file server. If I place the XML file on my web server, it works fine, but not when placed on the file server. In order to read an XML file using HTTPRequest, does the server the XML file reside need to be a web server?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T13:27:14+00:00Added an answer on June 3, 2026 at 1:27 pm

    First of all, when you are using an XMLHttpRequest, you can only ever access URLs on the same domain, protocol and port.

    Secondly, if the server you are attempting to connect to is not a web server (i.e. does not serve data using HTTP), then you will not get a valid response when sending an HTTP request to it.

    In order to get this to work, you will need to send your XMLHttpRequests to a server-side program/script which reads the file from the file server and returns it to the browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a mini web-server which needs to serve up a few static
Suppose I have static ip in a subnet that has DHCP server. If i
I have a web server that has existing pages in it that are created
I have written a web application that posts a file via http to a
I have an express app that has a bunch of static javascript files that
I have a static Web project added to an Apache server. Whenever I make
I have a web application where the masterPage/template contains some static HTML that never
I would like to have our web applications pull static content (css, js, images)
I have static method which returns me as it's name says data from domain
I have a PHP site setup on my server that also has mod_wsgi +

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.