function capturePhoto() { intel.xdk.camera.takePicture(50,true,"jpg"); } document.addEventListener("intel.xdk.camera.picture.add",function(event){ if (event.success == true) { var name = event.filename; var url = intel.xdk.camera.getPictureURL(name); } }); document.getElementById("image-holder").innerHTML += <img src='"+url+"' id='picture' width='200' height='150' > <input type="button" id="takePicture" value="Take Picture" name="takePicture" > <div id="image-holder"></div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)