02-09-2012 05:01 AM
Hello
I am trying to change the background image of a <div> like this:
HMTL:
<div id="myId">
//content
</div>
SCRIPT:
function onPhotoCaptured(filePath)
{
document.getElementById("myId").style.backgroundImage = "url(" + filePath + ")";
}
It works in Ripple for both JPEG and PNG files but on the Playbook simulator running on WMware it works only for PNG files.
Since all pictures taken by the camera are JPEG i am a bit stumped.
Is there something i need to include or anything to make JPEGs work?
Any ideas on a solution?