Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 91999 invoked from network); 16 Feb 2010 08:26:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Feb 2010 08:26:50 -0000 Received: (qmail 94049 invoked by uid 500); 16 Feb 2010 08:26:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 93962 invoked by uid 500); 16 Feb 2010 08:26:49 -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 93952 invoked by uid 99); 16 Feb 2010 08:26:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2010 08:26:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ladicek@gmail.com designates 74.125.78.24 as permitted sender) Received: from [74.125.78.24] (HELO ey-out-2122.google.com) (74.125.78.24) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2010 08:26:42 +0000 Received: by ey-out-2122.google.com with SMTP id 4so1410562eyf.41 for ; Tue, 16 Feb 2010 00:26:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=/BW6b9noZiqxRZNIdPloObzu6qUdcWru903/Ss/Vrpw=; b=fqnVgKB4U+9ddsoo9Dj3E3ehcF0YXdKqjtS86+j1HL/MQKGVbVxP5oKwVKyFOcqsgD Rz/nu28mlKExRMFZkKnsyFMxhotLH4OLm/P5KNoE1v1Eup62gRHtQX7bkflKO81DPmYi n7GSTVthUspip0qfhNHpow4i4HKhS8jv4kl+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Bq9n1vMTCg9qwMNj5XF2B9HPREd0XbaH+Ao/lI4RnM2DOQ0uaIkxKDkcf/A28LBoCe 3UWxWkqQiNGluB/zjc8z7hiwLw5k9N2wafPsTfAXZJNVE/viB13jFDj0vFX/IJh7hPht cImUgeN3h5ahLox5CkStSlv0h6/lwetXdOUto= MIME-Version: 1.0 Received: by 10.213.96.212 with SMTP id i20mr3675578ebn.35.1266308780838; Tue, 16 Feb 2010 00:26:20 -0800 (PST) In-Reply-To: <32D97EBA-2313-4168-B8A0-2DE52CB5F0B3@gmail.com> References: <85f46e6f1002151528xb35de06p1b9c626ce8f43985@mail.gmail.com> <32D97EBA-2313-4168-B8A0-2DE52CB5F0B3@gmail.com> Date: Tue, 16 Feb 2010 09:26:20 +0100 Message-ID: <782b14801002160026h177876c9j174513e46d6d126a@mail.gmail.com> Subject: Re: jQuery plugins for CouchDB From: Ladislav Thon To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001636c5a55d0ed0ce047fb37de8 --001636c5a55d0ed0ce047fb37de8 Content-Type: text/plain; charset=ISO-8859-1 It is actually very easy to modify jquery.couch.js to support other hosts -- I did it some time ago when experimenting and it was only few lines of code. And if I remember correctly, such modification is already in trunk (it adds uriPrefix variable). I also believe JSONP was kinda working, but I'm not quite sure about that now -- I switched to using server-side proxy for handling "cross site" requests. LT 2010/2/16 J Chris Anderson > > On Feb 15, 2010, at 3:28 PM, Hay (Husky) wrote: > > > Hi everyone, > > for a website we're currently building i'm experimenting with jQuery > > to get CouchDB results from a server. I've been looking into jQuery > > plugins to make everything a little easier, but after doing some > > research i haven't come up with much, so i hope maybe someone on this > > list could get me a little further. > > > > One plugin i've found is called jqCouch, but the last release is from > > 2007, so i guess that's pretty ancient in CouchDB terms. I guess JSONP > > support (which is essential for the site i'm building) is not in > > there. > > > > The other plugin is the 'official' one shipped with the tarball for > > the view frontend (jquery.couch.js). I get the feeling that the plugin > > is only written for the view backend, because it doesn't have any > > documentation and it also seems to lack JSONP support and setting > > another server than 'localhost'. Of course, i could hack the > > jquery.couch.js plugin to add support for both, but i'm hoping that > > there's another, easier solution. > > The official jquery.couch.js is actively maintained and plugs into a lot of > existing code. I highly recommend you use it if at all possible. Patches for > JSONP would be welcome if you can do it in a clean way. > > You will probably be happier hosting your HTML as attachments to CouchDB > documents, and then using the jquery.couch.js code from there -- then you > don't have to worry about cross site requests. > > Chris > > > > > > > Thanks, > > -- Hay > > --001636c5a55d0ed0ce047fb37de8--