Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 26110 invoked from network); 15 Oct 2010 18:42:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Oct 2010 18:42:41 -0000 Received: (qmail 56073 invoked by uid 500); 15 Oct 2010 18:42:39 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 56039 invoked by uid 500); 15 Oct 2010 18:42:39 -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 56031 invoked by uid 99); 15 Oct 2010 18:42:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 18:42:39 +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 (nike.apache.org: domain of paul.joseph.davis@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; Fri, 15 Oct 2010 18:42:33 +0000 Received: by gyg4 with SMTP id 4so602431gyg.11 for ; Fri, 15 Oct 2010 11:42:13 -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=6W1ISAWCSQh2N/jeBUl9MUr9F2XIMu1dZYgP4dOEHvQ=; b=CT4IK8pXbb3TEfzthpgqaCRVm12D0K3nEOfEGbHZ45rOeH2bShDxBYQk9sCbYgk7jQ HUWMXzltlXllPlg0vshV8Dxy/WsGipWy2dRXDWtZPvGmbT2tk81ZBe1T3CTxfWPJP4ep Ox5EgOQDQ9OkRP6MNQNO9lGKNf82Z8uWbDxfY= 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=owNEQpvILyCV4pOiU8EewyBb6ON3FUSwRQzVjztHnDA4YTxYevQl0WcJ5Ijww2RJbk uMKJ6w5ulmxiW4PXLHxnHgRrkBjtixwUpK8kvivyqAieBdPOHh4lYu3hn6hSQweRLhXv C7/bn+xfE1Gxms2ha75N7jZTsXfiOSlnm0CLU= Received: by 10.42.203.74 with SMTP id fh10mr918986icb.366.1287168132655; Fri, 15 Oct 2010 11:42:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.30.194 with HTTP; Fri, 15 Oct 2010 11:41:32 -0700 (PDT) In-Reply-To: <367552.30084.qm@web58308.mail.re3.yahoo.com> References: <367552.30084.qm@web58308.mail.re3.yahoo.com> From: Paul Davis Date: Fri, 15 Oct 2010 14:41:32 -0400 Message-ID: Subject: Re: JavaScript and CouchDB To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org You'll need to read up on the Same Origin Policy: http://en.wikipedia.org/wiki/Same_origin_policy On Fri, Oct 15, 2010 at 2:34 PM, Fabio Batalha C Santos Santos wrote: > Hello everybody, > > I'm newby in couchDB. > > > I'm trying to develop a "Google Analytics" like applications storing access log > metadata in a CouchDB database. Take a look at > http://github.com/fabiobatalha/Analytics---CouchDB/tree/master/logger/ > > The idea is: > > Create a logger JavaScript that will be responsible to register all accesslog > metadata in a CouchDB database. It works like the ga.js Google Anaytics. In the > bottom of each page will hava a call to a JavaScript function that will make use > of couch.js functions to register logaccess metadata in CouchDB > > The problem: > > I'm trying to make use of the couch.js script but the couch.js on works if the > request is made from the same host and port were the CouchDB is installed. > Instead of it, my application is in a different host. How can I configure the > connection to the couchDB using the couch.js > > > Thanks in advance. > Fabio Batalha > > > >