I have been trying to figure this out for hours and just can't get it.
I have an ios app that I built with air 3.0. In this app I launch a stagewebview. I have different event and event listeners that make javascript (jquery) calls to load new images.
The Problem:
First off this work fine in preview. I only get the problem when I have it installed on the ipad. I am appending img srcs to divs but nothing happens. The image is never downloaded and never appears on the page.
Here is a really simple example:
<head>
<script type="text/javascript" src="scripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
function loadPage(projectJSONString)
{
$('#container').append('<img src="http://www.someurl/someimage.jpg" />');
}
</script>
</head>
<body onload="loadPage()">
<div id="container">
</div>
</body>
</html>
the body tag has an onload event that calls a javascript function which simply trys to append an image to the div with an id "container".
Works fine in preview (given that you put an actual img src url) but doesn't work once it is on the ios device.
Please please help.
Try to isolate a jquery issue (you should be using jquerymobile if possible). Try using pure JS:
var img = new Image();
img.src = 'http://www.somewhere.com/a.png';
document.getElementById('container').appendChild(img);
Hello,
I met same issue. Seems there is a bug in Adobe StageWebView component. And this issue can be reproduced only in iOS. On Android and desktop it is ok.
I solved this issue by using native extension:
http://darkredz.com/ios-uiwebview-and-videoplayer-native-extension-for -air-mobile/
It is paid, but you can find open source versions, like that one:
http://matthewhx.blogspot.com/2012/04/uiwebview-native-extension-ios-e xample.html
or write your own.
btw reported bug https://bugbase.adobe.com/index.cfm?event=bug&id=3336858
North America
Europe, Middle East and Africa
Asia Pacific