facebook

webapp banner image access issue

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #348790 Reply

    lemorlenny
    Member

    I’ll need to show some ads banner, the app works well in Android apk but
    when I publish the HTML version on my server I receive an error calling the banner.

    I use an array filled with some ads URL images that I show randomly at bottom of the
    pages then assign the image to image control:

    
    aDataBannerLocal[0]="http://www.externalserver.com/bannerad/banner3.jpg"
    $('#m1-Search-adImage').attr('src', aDataBannerLocal[0]);  // bannerurl
    

    I receive this error:
    GET http://www.externalserver.com/bannerad/banner3.jpg net::ERR_FAILED jquery-1.8.3.min.js:2
    I haven’t control to this calling so I can’t manage it trough the code.

    How can I modify the image loading in other mode?

    Regards

    #348806 Reply

    support-michael
    Keymaster

    >the app works well in Android apk but when I publish the HTML version on my server I receive an error calling the banner

    My first thought is this is a CORS issue. Within an app the origin is file://. From a webapp the origin is your site http://<yoursite.com>. See this article that may be helpful or google for other resources http://www.html5rocks.com/en/tutorials/cors/

    #348817 Reply

    lemorlenny
    Member

    @support-michael wrote:

    >the app works well in Android apk but when I publish the HTML version on my server I receive an error calling the banner

    My first thought is this is a CORS issue. Within an app the origin is file://. From a webapp the origin is your site http://<yoursite.com>. See this article that may be helpful or google for other resources http://www.html5rocks.com/en/tutorials/cors/

    Thanks for your reply,
    I’ve already read the article you cite, and many others, and I believe to have solved almost all Cors problems but in this case I can’t modify anything because the error is generated by the core of system.
    I need to change the approach to assign the image url to the control.
    I thought to receive first all ads, save it locally and then show it or use an FTP task or other kind of control or what?

    Regards.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: webapp banner image access issue

You must be logged in to post in the forum log in