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 4094164
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:42:35+00:00 2026-05-20T19:42:35+00:00

some days are just like this. Ok, I’m trying to fetch some text using

  • 0

some days are just like this. Ok, I’m trying to fetch some text using … well, anything that will work. I thought JQuery might be a good approach, but, for good measure, i’ll try XMLHttpRequest, too. Totally silent failure from both. I guess I just don’t understand even this tiniest, simplest case. Here it is

If I type the following into the address bar of just about any browser, I get some nice text in a window

http://www.gutenberg.org/files/11/11.txt

Now, I want to write a little html file, on my disk, to do the same thing. Here is my attempt; I’ve gone over every letter of this file again and again, and checked with several online documents for proper JQuery & XMLHttpRequest syntax, and I cannot see anything wrong at all. But neither approach does anything at all.

Any advice?

Alice?

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script>

<script>

  document.write('Alice?')
  $.get(
    'http://www.gutenberg.org/files/11/11.txt', 
    function(data) {
      document.write(data);
      alert('Load was performed.');
    });

</script>

<script type="text/javascript">
    (function GetURL()
    {
        document.write('Alice?');
        var request = new XMLHttpRequest();
        var url = 'http://www.gutenberg.org/files/11/11.txt';
        request.open('GET', url, false);
        request.send(null);
        document.write(request.responseText);
    })();
</script>

  • 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-05-20T19:42:36+00:00Added an answer on May 20, 2026 at 7:42 pm

    It’s a Cross-Domain Access problem (violation of Same Origin Policy). Essentially JavaScript refuses to load stuff from other servers (in newer Browsers, IE6 happily loads everything from anyone).

    There are some workarounds listed in this article (Server Side proxy, IFrame, Flash/Silverlight plugin, CORS, JSONP) and another idea is EasyXDM.

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

Sidebar

Related Questions

Some days ago I realized that PrintWriter (as well as PrintStream ) never throw
I want to load a CSV file that looks like this: Acct. No.,1-15 Days,16-30
Hey! i'm looking for some way that can help me in task like this:
I am using a multiline text box in C# to just log some trace
Just some days ago I started looking into a unit test framework called check,
Rails introduced some core extensions to Ruby like 3.days.from_now which returns, as you'd expect
This is a nut I'm cracking these days Application I'm working on has some
Some web applications, like Google Docs, store data generated by the users. Data that
Some days I swear I'm going mad. This is one of those days. I
I am taking some work home with me these days and I transport it

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.