- This topic has 2 replies, 2 voices, and was last updated 10 years, 7 months ago by lemorlenny.
-
AuthorPosts
-
lemorlennyMemberI’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
support-michaelKeymaster>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/
lemorlennyMember@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.
-
AuthorPosts