Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9ABCA99C0 for ; Mon, 16 Apr 2012 21:08:43 +0000 (UTC) Received: (qmail 40694 invoked by uid 500); 16 Apr 2012 21:08:43 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 40670 invoked by uid 500); 16 Apr 2012 21:08:43 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 40657 invoked by uid 99); 16 Apr 2012 21:08:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 21:08:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 21:08:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EBC4039A0CB for ; Mon, 16 Apr 2012 21:08:17 +0000 (UTC) Date: Mon, 16 Apr 2012 21:08:17 +0000 (UTC) From: "Alan Neveu (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <76705538.30366.1334610497967.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <902651391.9949.1330007448644.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-276) Cannot use $.getJSON on a local file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255053#comment-13255053 ] Alan Neveu commented on CB-276: ------------------------------- Could this be the same root cause as what is behind CB-520? https://issues.apache.org/jira/browse/CB-520 > Cannot use $.getJSON on a local file > ------------------------------------ > > Key: CB-276 > URL: https://issues.apache.org/jira/browse/CB-276 > Project: Apache Callback > Issue Type: Bug > Components: WP7 > Affects Versions: 1.4.0 > Reporter: Alexandre Mathieu > Assignee: Jesse MacFadyen > Labels: ajax, javascript, json, xhr > > 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