From user-return-17949-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Sep 15 21:17:58 2011 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 10B68844F for ; Thu, 15 Sep 2011 21:17:58 +0000 (UTC) Received: (qmail 51104 invoked by uid 500); 15 Sep 2011 21:17:56 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 51064 invoked by uid 500); 15 Sep 2011 21:17:56 -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 51056 invoked by uid 99); 15 Sep 2011 21:17:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2011 21:17:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wordituk@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2011 21:17:50 +0000 Received: by qyc1 with SMTP id 1so3914678qyc.11 for ; Thu, 15 Sep 2011 14:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=tRnMCcmluMRE0s8J+anGs0gZYAVGu23R424B38DBB+s=; b=tC4Jk4DRP0lEAuuiMsorw8dZZOfz5jRQ8mr7qWcjozywFDRXRtduRdtOkwLeN+qrvG urWtcaKpkdv1qfWmBD9Y04wofUZ/GW4NtAQ497MJ1rOuSSBgdHeVDG8XiWmshn/mxriB qLqS3h0MdMLfYkUq+4LLCaoc+nDHu3NxM1kfk= Received: by 10.229.64.150 with SMTP id e22mr1379115qci.224.1316121450109; Thu, 15 Sep 2011 14:17:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.91.7 with HTTP; Thu, 15 Sep 2011 14:16:50 -0700 (PDT) In-Reply-To: References: From: Wordit Date: Thu, 15 Sep 2011 23:16:50 +0200 Message-ID: Subject: Re: Android with Remote Couch To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 On Thu, Sep 15, 2011 at 4:03 PM, Keith Gable wrote: > Putting couch.js on the server wouldn't bypass the cross-domain problem. Yes, in fact the script is not seen and Android complains about it. So the scripts have to be in the same place as the HTML file. > I would suggest ignoring anything mobile and seeing how a web page would > bypass the cross-domain problem to get to CouchDB, since that's the problem > you're having I'm not sure it's only a cross-domain issue. I use HTML5's Postmessage to work with cross-domain policies. That worked great when the scripts are in the couch and need to talk to another domain (for extra PHP stuff). It's a bit mind-boggling for a while, but it works, the Postmessage jquery plugin even supports old IE versions. I'll ask on the PhoneGap list, but I wasn't sure how much this is a couch db issue. Has anyone tried talking to a couch from a web app stored locally on your PC? I mean either just loading the static HTML file in the browser (now web server), or running a web server as localhost? Thanks, Marcus