Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 33862 invoked from network); 12 Oct 2010 21:14:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Oct 2010 21:14:53 -0000 Received: (qmail 7356 invoked by uid 500); 12 Oct 2010 21:14:51 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 7324 invoked by uid 500); 12 Oct 2010 21:14:51 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 7315 invoked by uid 99); 12 Oct 2010 21:14:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 21:14:51 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ido.ran@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 21:14:44 +0000 Received: by iwn40 with SMTP id 40so7874314iwn.11 for ; Tue, 12 Oct 2010 14:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=j6vHcebDThB2gAhiILpXl4znou1t71IwCMLdRIQVqv4=; b=BVGJkQw5VyjVc9ETFjSHpBlDDxxGxqYZeMFaf7Na9y0iVe8wl4X0NacS21KJlmOX67 JwZ7/5iCLvvhSJY4vLZwczvpZGpUUk7NbOXkHDvHJNESLBlMI74GKmx0a7kifA0ctL40 pxYvJN5sh0tlGmpPwb5nNlvyGoRyXGAJDtWUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=UWG9buwAePVRuGX6jlRhNnvif3RBn8PklZEzbeXBFBf2QbMRqtMlovsuGtkTkRS9gR PbJp/egUes2ho+bsAeRCxKCrJdHZUnQ60kEyWyWifkHj+cmcTERCaPvXiAScfGxCftql PbgjuPYeRKpE+akI/BaQwe9LRspo6sKPEXDh4= MIME-Version: 1.0 Received: by 10.231.160.17 with SMTP id l17mr6252251ibx.102.1286918062862; Tue, 12 Oct 2010 14:14:22 -0700 (PDT) Received: by 10.231.166.207 with HTTP; Tue, 12 Oct 2010 14:14:22 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Oct 2010 23:14:22 +0200 Message-ID: Subject: Re: JSONP From: Ido Ran To: "user@couchdb.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org I'm using 1.0.1 in CouchDBX.app. What setting do I need to change? On Tuesday, October 12, 2010, Paul Davis wrote: > What version are you using? > > jsonp has to be turned on in the .ini on recent releases. > > On Tue, Oct 12, 2010 at 3:33 PM, Ido Ran wrote: >> Hi, >> >> I'm trying to access CouchDB using JSONP. >> I'm using curl to see if I get the right response but I never get the >> callback around there data, only the data itself just like a regular call. >> >> I've try it on single doc and a view and it does not work for me. >> I've notice this bug fix >> https://issues.apache.org/jira/browse/COUCHDB-343which means it >> CouchDB should support it. >> >> SingleDoc: curl http://localhost:5984/todos/task-1?callback=blah >> >> {"total_rows":1,"offset":0,"rows":[ >> {"id":"task-1","key":"task-1","value":{"_id":"task-1","_rev":"1-51d5d67d13db6285a551634e805a78e1","description":"hello","isDone":false,"_deleted_conflicts":["2-fecb3acf61cc5c83cbc24c332b041a89"]}} >> ]} >> >> >> View: curl >> http://localhost:5984/todos/_design/app/_view/allTasks?callback=blah >> >> {"_id":"task-1","_rev":"1-51d5d67d13db6285a551634e805a78e1","description":"hello","isDone":false} >> IdoMac:~ idoran$ curl http://localhost:5984/todos/task-1?callback=blah >> {"_id":"task-1","_rev":"1-51d5d67d13db6285a551634e805a78e1","description":"hello","isDone":false} >> >> >> What am I doing wrong? >> >> Thank you, >> Ido >> >