Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2012

    Exclamation Image src cross domain??????

    Hi friends, I need to download some images from a server in a list,
    the "src" of the images i get from a json parsing whith ajax call.
    But the images never loads because the src is other domain.


    json server: http://www.jsonserver.com
    Image server: http://www.images-server.com

    function getGentePorProximidad(token) {

    var sucho='';
    var countItems=0;

    url : $URL+'buscarUsuariosPorProximidade&interface_acesso=nokiaweb&id_pais_acesso=AR&token='+token+'&inicio=0&quantidade=4',

    dataType : 'json',
    async : false,
    crossDomain : false,// I already changed false to true here

    success : function(data, textStatus, jqXHR) {
    $.each(data, function(key, val) {
    $.each(val, function(key1, val1) {

    var imagen = val1.url_foto.replace('##RES##','25x25');
    imagen= imagen.replace('##EXT##','png');

    sucho=sucho+'<img src="'+imagen+'" />'; //Images never loads
    sucho=sucho+'<br/><p>'+imagen+'</p>'; // The url its OK example: http://www.images-server.com/img.png


    error : function(jqXHR, textStatus, errorThrown) {



  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: Image src cross domain??????

    Extremely naive check: can you load those images with a simple, static page (placed on www.jsonserver.com of course)? If www.images-server.com does not like outsiders at all, the script has no chance either.

Similar Threads

  1. Cross-Domain problem when accessing JSON (?)
    By lorion84 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2012-07-07, 22:05
  2. NDS 2.0 domain
    By chomoot in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-08-19, 21:41
  3. Replies: 0
    Last Post: 2003-08-15, 13:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts