I am using the OMDb API for getting some film information.
The function I use is this one:
function getImage(titel) { 
    $.ajax({ 
        type: "GET",
        dataType: "json",
        url: "http://www.omdbapi.com/?t=" + titel,
        success: function(data){
            return data.Poster; 
        },
        async:false,
        error: function() {
            return "Image not found.";
        }
    });
}
An example I get returned by the server:
{
   "Title":"The Godfather",
   "Year":"1972",
   "Rated":"R",
   "Released":"24 Mar 1972",
   "Runtime":"2 h 55 min",
   "Genre":"Crime, Drama",
   "Director":"Francis Ford Coppola",
   "Writer":"Mario Puzo, Francis Ford Coppola",
   "Actors":"Marlon Brando, Al Pacino, James Caan, Diane Keaton",
   "Plot":"The aging patriarch of an organized crime dynasty transfers control of his clandestine empire to his reluctant son.",
   "Poster":"http://ia.media-imdb.com/images/M/MV5BMjEyMjcyNDI4MF5BMl5BanBnXkFtZTcwMDA5Mzg3OA@@._V1_SX300.jpg",
   "imdbRating":"9.2",
   "imdbVotes":"755,007",
   "imdbID":"tt0068646",
   "Type":"movie",
   "Response":"True"
}
The titel given is parameter is filled, and the data returned by the omdbapi is correct. Only the data.Poster is not working. What am I doing wrong?
 
     
     
    