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

I think this code For Each file in filecoll Ext = UCase(Right(File.Path, 3)) If
Anyone have code to set margins(top,left,right,bottom) using excel interop and vb.net. I think it
I don't think my code's the problem because it's working on my local server
I have this vb.net code ( but I think meaning code is equivalent for
The following C++ code i think is correct, but produce some warnings when compiled
Ok, I know this seems like a duplicate question, but don't think it is.
i think this question is very easy but I don't know if i am
Maybe it's my query, but I don't think so. I'm attempting to import messages
Maybe this is a dumb question, but I don't get it so appologize :)
I have written some code that works great, but I don't understand why 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.