You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Resolved) (JIRA)" <ji...@apache.org> on 2012/04/17 21:41:17 UTC
[jira] [Resolved] (CB-523) Camera full example has invalid JSON for
Camera options object
[ https://issues.apache.org/jira/browse/CB-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-523.
---------------------------------
Resolution: Duplicate
Fix Version/s: (was: 1.7.0)
1.6.1
dupe of CB-503 which has been fixed.
> Camera full example has invalid JSON for Camera options object
> --------------------------------------------------------------
>
> Key: CB-523
> URL: https://issues.apache.org/jira/browse/CB-523
> Project: Apache Callback
> Issue Type: Bug
> Components: Docs
> Affects Versions: 1.6.0
> Reporter: Filip Maj
> Assignee: Michael Brooks
> Fix For: 1.6.1
>
>
> The top-most full example has the following code:
> {code}
> function capturePhoto() {
> // Take picture using device camera and retrieve image as base64-encoded string
> navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
> destinationType.DATA_URL });
> }
> // A button will call this function
> //
> function capturePhotoEdit() {
> // Take picture using device camera, allow edit, and retrieve image as base64-encoded string
> navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 20, allowEdit: true,
> destinationType.DATA_URL });
> }
> {code}
> Note how the Camera options object is not valid JSON.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira