Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3ECEB2C1D for ; Thu, 5 May 2011 13:29:13 +0000 (UTC) Received: (qmail 89970 invoked by uid 500); 5 May 2011 13:29:11 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 89934 invoked by uid 500); 5 May 2011 13:29:11 -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 89926 invoked by uid 99); 5 May 2011 13:29:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 13:29:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.52] (HELO mail-qw0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 13:29:05 +0000 Received: by qwb8 with SMTP id 8so2030635qwb.11 for ; Thu, 05 May 2011 06:28:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.6.142 with SMTP id 14mr2473733qaz.10.1304602123926; Thu, 05 May 2011 06:28:43 -0700 (PDT) Received: by 10.229.85.213 with HTTP; Thu, 5 May 2011 06:28:43 -0700 (PDT) In-Reply-To: <4DC1D6DB.90801@gmail.com> References: <4DC1D6DB.90801@gmail.com> Date: Thu, 5 May 2011 15:28:43 +0200 Message-ID: Subject: Re: CouchDB remote JavaScript Calls From: Matthias Altmann To: Paulo Edgar Castro Cc: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Cool, that works. Thx a lot 2011/5/5 Paulo Edgar Castro : > Hi Mathias > > I think that this ( allow_jsonp ) is what you require to add to your > local.ini or within local.d. > Please re-check CouchDB documentation. > > [httpd] > ;port =3D 5984 > ;bind_address =3D 127.0.0.1 > bind_address =3D 0.0.0.0 > allow_jsonp =3D true > > Regards, > > > =A0 =A0 =A0 =A0 =A0 =A0PECastro > > On 04/05/11 23:16, Matthias Altmann wrote: >> >> Hi everybody, >> >> I'm a litte desperate. Perhaps you could help me. I'm now trying for >> hours to connect to a couchdb server via javascript. >> Do you have a good example how I can perform a JSON call to a database >> in JS? I tried several libraries like accompagnied couch.js, jqcouchdb >> (http://plugins.jquery.com/project/jqcouch) or via XMLHTTPRequest >> (http://wiki.apache.org/couchdb/Getting_started_with_JavaScript). Best >> it would be, if I could get the data from the external url of the >> database, because of easy coding with Aptana - but I think it's not >> possible because of Cross-Site-Scripting issues. My CouchDB now is >> opened at http://maltmann.wi-kassel.de:5984. I got a connection inside >> the server with the PHP tutorial >> (http://wiki.apache.org/couchdb/Getting_started_with_PHP): >> http://maltmann.wi-kassel.de/t/test.php. So I tried to get these >> results to JavaScript: http://maltmann.wi-kassel.de/t/test.html , but >> JS crops the result (see alert). >> >> Help, would be really appreciated. >> >> Best regards, >> >> Matthias >> > > --=20 Universit=E4t Kassel Wirtschaftsinformatik | Information Systems Forschungszentrum IT-Gestaltung (ITeG) | Research Center for IS Design (ITe= G) http://www.inf.wirtschaft.uni-kassel.de | http://www.iteg.uni-kassel.de Nora-Platiel-Stra=DFe 4 | 34127 Kassel | Germany Tel. +(0)49 561 804 6061