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.