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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:36:51+00:00 2026-06-01T09:36:51+00:00

OK I have a simple script at http://kleague.org/test/ Type a movie name and it

  • 0

OK I have a simple script at http://kleague.org/test/

Type a movie name and it should output the movie name, year, and get the movie poster URL (if there is one, there usually is.)

Well, I just tried it and I got a 403 error on the image. it GOT the image but it didn’t display it. What am I doing wrong?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />


    <title>IMDB api</title>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>


    <script type="text/javascript">
    $(document).ready(function()
{




$('#search').click(function(){

$(".loading").css("display", "inline");


       var yourMovie = $("#movie").val();
  $("#debug").append("You are searching for ... "+yourMovie+"\n");

dataString = "callback=?&t=" +yourMovie;

$.getJSON('http://www.imdbapi.com/', dataString, function(html){

$(".loading").css("display", "none");

    var movieSugg = html.Title;
    var movieYear = html.Year;
    var movieImg = html.Poster;

$("#movieposter").attr("src", movieImg);
$("#movieposter").css("display", "inline");

$("#more").append("You found: " + movieSugg + " ("+movieYear+") ["+movieImg+"] \n");
});

});


});
</script>

</head>
<body>

<img src="" alt="Poster" id="movieposter" style="display: none;float:left;margin-right:10px;" />
<form method="get" action="#" enctype="text/html" > 
<input type="text" id="movie" maxlength="50" /> <a href="#" id="search">Search now!</a> <img alt="Searching..." style="display: none;" class="loading" src="ajax-loader.gif" title="Searching..." />

</form>

<div id="other">

  Trigger the handler
</div>
<br />
<textarea id="debug" style="width: 500px;height:150px;border:1px solid black;font-face:typewriter;"></textarea><br />
<textarea id="more" style="width: 500px;height:150px;border:1px solid red;font-face:typewriter;"></textarea>

</body>
</html>
  • 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-01T09:36:52+00:00Added an answer on June 1, 2026 at 9:36 am

    JSONP requires a function/script to be returned. Loading an image through AJAX has no use. Just appending the image itself will do the trick.

    <img src="{html.poster here}" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have the following simple script <input class=input type=text name=password style=color: #797272; value= <?php
I have a simple script that closes a DIV. An example is here: http://jsfiddle.net/22fTm/3/
I have a simple jquery script as follows: $('a').click(function() { //get the id of
For a site i made, http://crystalmurray.com , i have a simple little script to
I have a very simple script that should change links' id s but somehow
I have this simple script: ids=22656 url = http://api.stackoverflow.com/1.0/users/+ids+/timeline; console.log( url ); xmlhttp =
I have a page with tabs on it that you this jQuery script http://www.sohtanaka.com/web-design/simple-tabs-w-css-jquery/
I have a question about ultra simple jquery tabs. I use this script: http://jsfiddle.net/HX5KZ/2/
I have the following simple Greasemonkey script: // ==UserScript== // @name MetaCPAN Everywhere //
I have simple html page: <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd> <html>

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.