Revision: 53250
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 17, 2011 08:11 by parkerkrhoyt
Initial Code
$( '#camera' ).bind( 'touchstart', function() { $( this ).attr( 'src', 'assets/camera.down.png' ); navigator.camera.getPicture( function( data ) { $( '#photo' ) .attr( 'src', 'data:image/jpeg;base64,' + data ) .css( 'visibility', 'visible' ); $( '#camera' ).attr( 'src', 'assets/camera.up.png' ); }, function( error ) { console.log( 'Error' ); }, { destinationType: Camera.DestinationType.DATA_URL, sourceType: Camera.PictureSourceType.CAMERA, allowEdit: false, targetWidth: 260, targetHeight: 435 } ); } );
Initial URL
Initial Description
Initial Title
Using the Device Camera with PhoneGap
Initial Tags
phone, image, mobile, web, Development
Initial Language
JavaScript