Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 45652 invoked from network); 12 Oct 2010 21:34:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Oct 2010 21:34:36 -0000 Received: (qmail 42024 invoked by uid 500); 12 Oct 2010 21:34:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41984 invoked by uid 500); 12 Oct 2010 21:34:35 -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 41976 invoked by uid 99); 12 Oct 2010 21:34:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 21:34:35 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@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:34:30 +0000 Received: by iwn40 with SMTP id 40so7903151iwn.11 for ; Tue, 12 Oct 2010 14:34:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=K0hsJjqNppfGl5WyMPqpDbaeEvaVd0LNo7Xofo6EbXo=; b=TkY+lBzz7tJRcRBpicMnt6hf0YViXESnKxSO+2E75Ld/B62jcZi1AyITI3PXtTZr8W eglecObcH1T5Cm3205eHSh04sZPdQ2LUStf6gp3iiejcEsd9e5uOQNvpKBtL24YKNl7k k/wtl8TLD0s2zpDvixQ/n+MgVn3EWwwAKQ+L0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=gunAQzB3IlnHPbW5XbR06bpuX7em8O2IkVuIS42dgUHC+nuKptvmMZIJZMppEPG5+Z jLk6UyyO8IOkMb9AR01SR0/zn3DmfALv1G1OjXEi0IfNCC2Pz+ZwgMGEoHo1sq2qhWlL QHNYbhbWw7w+e07ir5mPqlIAP9NYZPrd86Bh0= Received: by 10.231.33.132 with SMTP id h4mr6245731ibd.150.1286919248086; Tue, 12 Oct 2010 14:34:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.30.194 with HTTP; Tue, 12 Oct 2010 14:33:27 -0700 (PDT) In-Reply-To: References: From: Paul Davis Date: Tue, 12 Oct 2010 17:33:27 -0400 Message-ID: Subject: Re: JSONP To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Use Futon or the config HTTP API. Should be something lie: $ curl -X PUT http://hostname/_config/httpd/allow_jsonp -d true On Tue, Oct 12, 2010 at 5:19 PM, Ido Ran wrote: > OK, I've change the file default.ini, set allow_jsonp to true. > My question now is how can I do that change in couchone.com for production > use? > > Thank you, > Ido > > On Tue, Oct 12, 2010 at 11:14 PM, Ido Ran wrote: > >> 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 >> >> >> > >> >