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

  • SEARCH
  • Home
  • 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 8059177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:35:24+00:00 2026-06-05T09:35:24+00:00

Here is my code. I know it’s pointing to localhost. However, it should 404

  • 0

Here is my code.

I know it’s pointing to localhost. However, it should 404 for you. If you can get it to 404, you’re ahead of me.

I have used IE9’s debugging console and I can get upto right before the “xdr.open()” call.

I do not see anything in the net panel. Please help.

$('body').on('click','.click',function() {    
    if (window.XDomainRequest) {
            xdr = new XDomainRequest();

            xdr.onload = function() {
                xdr.contentType = "text/plain";
                alert('load');
            };

            xdr.onerror = function() {
                alert('error');                                      
            };

            xdr.onprogress = function() {
                alert('progress');
            };

            xdr.ontimeout = function() {
                alert('timeout');
            };
            xdr.timeout = 10000;


            alert('Preparing to open connection...');                
            xdr.open( 'GET', host + '/bookmarklet/saveData/' );
            alert('If you see this message, the connection is opened');

            xdr.send( ( s.hasContent && s.data ) || null );
            alert('If you see this message, the data has been sent!');
        }
});

EDIT: corrected a typo from copy/paste around xdr.setTimeout — still doesn’t work?

  • 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-05T09:35:25+00:00Added an answer on June 5, 2026 at 9:35 am

    I was sending the access-control-allow-origin: * header twice (once in .htaccess, once in php script)

    Check “Raw Headers” not just “headers” using chromebug 😉

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

Sidebar

Related Questions

I don't know why this is happening. I have this code here . It
I have some code here that I have helped modified, however there is a
I have a bit of code here where users can login via their twitter
enter code here Just need to know the basics of peeking in scheme. I
Here is the code I dont know whats wrong with it. <?php //Logout code
The code here is X++. I know very little about it, though I am
Here's my code, I know there's a small mistake somewhere but being a noob
Question sounds quiet weird I know but here is the problem, the following code
I'm trying to solve the problem here but I don't know why my code
From the discussion started here , I'd like to know whether the following code

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.