Created
July 22, 2011 15:24
-
-
Save wei-lee/1099666 to your computer and use it in GitHub Desktop.
$fh.cam return file path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $fh.cam({ | |
| act: 'picture', | |
| source: 'photo', | |
| uri: true | |
| }, function (res) { | |
| if (res.uri) { | |
| filetoupload = res.uri; | |
| $('#result').html('<p>' + res.uri + '</p>'); | |
| var img = new Image(); | |
| img.src = res.uri; | |
| $('#result').css('width', '100%').css('height', '90%').append(img); | |
| } | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment