cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flavio Spezi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-3409) FileReader.readAsText error: e.target.error.code = "JSON error"
Date Thu, 16 May 2013 08:21:16 GMT
Flavio Spezi created CB-3409:
--------------------------------

             Summary: FileReader.readAsText error: e.target.error.code = "JSON error"
                 Key: CB-3409
                 URL: https://issues.apache.org/jira/browse/CB-3409
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.7.0
            Reporter: Flavio Spezi
            Assignee: Joe Bowser


This is an example code:

function readMyFile() {
    var filename = "testFile.txt";
    var objFile = new FileReader();
    objFile.onloadend = function(e) {
        console.log("Result: " + JSON.stringify(e));
    }
   objFile.readAsText(filename);

}

--
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

Mime
View raw message