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 B632E9A68 for ; Sun, 22 Apr 2012 08:56:14 +0000 (UTC) Received: (qmail 14138 invoked by uid 500); 22 Apr 2012 08:56:14 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 13882 invoked by uid 500); 22 Apr 2012 08:56:08 -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 13293 invoked by uid 99); 22 Apr 2012 08:56:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Apr 2012 08:56:05 +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; Sun, 22 Apr 2012 08:56:03 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 19065408AC9 for ; Sun, 22 Apr 2012 08:55:42 +0000 (UTC) Date: Sun, 22 Apr 2012 08:55:42 +0000 (UTC) From: "Filip Maj (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1235279070.2457.1335084942224.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 [ https://issues.apache.org/jira/browse/CB-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259050#comment-13259050 ] Filip Maj commented on CB-276: ------------------------------ @Alexandre: can you post your sample code for this issue? I am having trouble running jQuery 1.7.2 using the 1.6.1 build and am wondering how you got this working in the first place. > 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: Filip Maj > 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