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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:42:45+00:00 2026-05-15T12:42:45+00:00

I think the code is right, but I don’t get any response in my

  • 0

I think the code is right, but I don’t get any response in my second alert. When I go to the website given in the first alert, I get the text I want. Why doesn’t it work?

<script type="text/javascript">

function getimages(q) {
   bossimagesrequest = new XMLHttpRequest;
   var requri = "http://boss.yahooapis.com/ysearch/images/v1/"+escape(q)+"?appid=yahoobosskey&filter=true&count=10";
   bossimagesrequest.open("GET", requri, true);
   bossimagesrequest.onreadystatechange = function() {
      if (bossimagesrequest.readyState === 4) {
         alert(requri);
         alert(bossimagesrequest.responseText);
      }
   };
   bossimagesrequest.send();
}
</script>

I did replace “yahoobosskey” with my API key, so that’s not the problem.

  • 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-15T12:42:45+00:00Added an answer on May 15, 2026 at 12:42 pm

    It looks like you have bumped into the same origin policy. You may have to use a relative path instead of your absolute http://boss.yahooapis.com/... path.

    Related: Empty responseText from XMLHttpRequest

    You may also be interested in checking out the following Stack Overflow community wiki post:

    • Ways to circumvent the same-origin policy
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Maybe it's my query, but I don't think so. I'm attempting to import messages
This code in JS gives me a popup saying i think null is a
I'm trying to code what I think is a fairly routine AJAX pattern using
Following is some obviously-defective code for which I think the compiler should emit a
Here are two chunks of code that accomplish (what I think is) the same
Do you guys think internationalization should only done at the code level or should
Does anyone actually think this is a good reason to Dumb down your code?
I'm trying to think of clever, clear, and simple ways to write code that
I've got a name of a method: Garden.Plugins.Code.Beta.Business.CalculateRest How to run it? I think
One thing I struggle with is planning an application's architecture before writing any 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.