I am new to phonegap. How can we load an image on html5 using phonegap in ios? Can anyone help me? But it is not working
DOCTYPE HTML>
<HTML>
<body>
<canvas id="myCanvas" width="200" height="100" style="border:1px solid #c3c3c3;">
Your browser
</canvas>
<script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
<script type="text/javascript" src="xui<2.3.2>.js"></script>
<script type="text/javascript" charset="utf-8">
window.onload=function(){
var c=document.getElementById("myCanvas");
var cs=c.getContext("2d")
var img=new Image()
img.src="picture.jpg";
cs.drawingImage(img,0,0);
};
</script>
<img src="picture.jpg"/>
</body>
</HTML>
hi well i couldnt figure out the problem but the following example worked for me.
change the links to the image . hope it works.