Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 35244 invoked from network); 12 Oct 2010 21:19:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Oct 2010 21:19:56 -0000 Received: (qmail 16206 invoked by uid 500); 12 Oct 2010 21:19:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 16055 invoked by uid 500); 12 Oct 2010 21:19:54 -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 16047 invoked by uid 99); 12 Oct 2010 21:19:54 -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:19:54 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ido.ran@gmail.com designates 209.85.160.180 as permitted sender) Received: from [209.85.160.180] (HELO mail-gy0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 21:19:48 +0000 Received: by gyb13 with SMTP id 13so1162515gyb.11 for ; Tue, 12 Oct 2010 14:19:27 -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=ASgdwSz28cj6yt7dNG0+k8LIkU00xWN37C4AY4sUkBI=; b=V60zJ8BMRMpohZfRyGlDdDHcHAXKQoxPXnDIL0ZCW2eM1+XtUdbFXHGeCgYJExPsin 74xIG4EJvPYakSrXn6ZHisv4IVTqypTi2dM4nIw9sKHkWSdkfy5Sp61RjrfxmrSlQLZY 09OY9Uei8HskswXmLREbUfDfyiVhShyoZc3hM= 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=EG64Kw5JWa6vGs96wHrXVRJNuCUJQNTVftSkT8ouziGumI3l67Pmw7sd0AiRxePhmC 8Ro+Tr7BVgM6tF5+vY8aT00u4491rOEUV2PDrKzWglq/sbY56KFK5HkU9R330LAk7SkT qxatGW414jXqewGbXZ2kyYjAgMAZByl+iR8G8= Received: by 10.42.103.3 with SMTP id k3mr3593278ico.213.1286918364942; Tue, 12 Oct 2010 14:19:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.166.207 with HTTP; Tue, 12 Oct 2010 14:19:04 -0700 (PDT) In-Reply-To: References: From: Ido Ran Date: Tue, 12 Oct 2010 23:19:04 +0200 Message-ID: Subject: Re: JSONP To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=20cf303ea29aff55290492720701 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303ea29aff55290492720701 Content-Type: text/plain; charset=UTF-8 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 > >> > > > --20cf303ea29aff55290492720701--