incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Bosch (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-276) Cannot use $.getJSON on a local file
Date Tue, 05 Jun 2012 09:18:23 GMT

     [ https://issues.apache.org/jira/browse/CB-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jesus Bosch updated CB-276:
---------------------------

    Attachment: LondonWP7_simple.zip

Full small project that reproduces the error
                
> Cannot use $.getJSON on a local file
> ------------------------------------
>
>                 Key: CB-276
>                 URL: https://issues.apache.org/jira/browse/CB-276
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP7
>    Affects Versions: 1.4.0
>            Reporter: Alexandre Mathieu
>            Assignee: Jesse MacFadyen
>              Labels: ajax, javascript, json, xhr
>             Fix For: 1.9.0
>
>         Attachments: LondonWP7_simple.zip
>
>
> I have the following code in my JS:
> $.getJSON('json/somefile.json').success(function(data) { ... });
> Where somefile.json has been set to "Content".
> The console gives me the following message:
> Wrapped XHR received Error from FileAPI :: [object Object]
> Where the object contains: {code: 1}
> Any idea on the matter?

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

        

Mime
View raw message