Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML dynamic image loading is not working in IOS Webview #40

Open
padmaruban opened this issue Feb 27, 2017 · 0 comments
Open

HTML dynamic image loading is not working in IOS Webview #40

padmaruban opened this issue Feb 27, 2017 · 0 comments

Comments

@padmaruban
Copy link

padmaruban commented Feb 27, 2017

Hi ,
I am using html files inside my native IOS app with jockeyjs. I am trying to load images from native app's storage, after loading the html page using jockeyjs. In this case I am pushing image names in json to html page. HTML files and images are in same directory.

HTML before Image Loading

<html>
<head>
<meta charset="UTF-8">
<script src="jquery.js"></script>
<script src="jockey.js"></script>
<script>
Jockey.on("load_image",function(CONTENT){
var img_src = CONTENT.image;
$(".image-div").append("<img src=\""+img_src+"\" />");
});
</script>
</head>
<body>
<div class="image-div"></div>
</body>
</html>

HTML after Image Loading

<html>
<head>
<meta charset="UTF-8">
<script src="jquery.js"></script>
<script src="jockey.js"></script>
<script>
Jockey.on("load_image",function(CONTENT){
var img_src = CONTENT.image;
$(".image-div").append("<img src=\""+img_src+"\" />");
});
</script>
</head>
<body>
<div class="image-div">
<img src="test_image.jpg" />
</div>
</body>
</html>

But the Image is not getting displayed on page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant