[
https://issues.apache.org/jira/browse/CB-3221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13642398#comment-13642398
]
Rob Gillan commented on CB-3221:
--------------------------------
Shazron,
Putting try/catch around the parse does indeed stop it failing, but I think
there's still a problem. If we look at what is in event.target, it should
contain the result written just beforehand in our example. When we log
event.target, all we get is:
event.target:{"_readyState":2,"_error":null,"_result":"","_fileName":"/Users/rob/Library/Application
Support/iPhone
Simulator/6.1/Applications/82256088-B5D5-46F1-9E56-2BBA9E2B6168/Documents/testdb/testfile.json","_realReader":{"readyState":0,"result":"","onabort":null,"error":null}}
The filename is correct, but there is no result.
Cheers
Rob
> FileReader not working on Cordova 2.6.0 or greater
> --------------------------------------------------
>
> Key: CB-3221
> URL: https://issues.apache.org/jira/browse/CB-3221
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: Master, 2.6.0
> Environment: iOS 6.1.3/Xcode 4.6.2
> Reporter: Rob Gillan
> Assignee: Shazron Abdullah
> Fix For: 2.7.0
>
> Attachments: index.html
>
>
> In upgrading from production 2.5 to 2.6 we have found that the FileReader
> events do not fire beyond onloadstart. Thus reading files do not work as
> there is no onloadend or returned information. Noticed first on an iPad3 but
> then verified under XCode simulator.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira