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 4C7FF6D3A for ; Sun, 5 Jun 2011 20:15:21 +0000 (UTC) Received: (qmail 99823 invoked by uid 500); 5 Jun 2011 20:15:19 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 99760 invoked by uid 500); 5 Jun 2011 20:15:19 -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 99752 invoked by uid 99); 5 Jun 2011 20:15:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 20:15:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.213.52] (HELO mail-yw0-f52.google.com) (209.85.213.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 20:15:12 +0000 Received: by ywo7 with SMTP id 7so2149141ywo.11 for ; Sun, 05 Jun 2011 13:14:51 -0700 (PDT) Received: by 10.236.143.2 with SMTP id k2mr4789759yhj.500.1307304891182; Sun, 05 Jun 2011 13:14:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.125.13 with HTTP; Sun, 5 Jun 2011 13:14:31 -0700 (PDT) In-Reply-To: <20110605091733.d18bf622.mk@cognitivedissonance.ca> References: <20110602082348.1d0b6ed2.mk@cognitivedissonance.ca> <20110603075541.fbe3f2ec.mk@cognitivedissonance.ca> <20110604124653.8ba3b3b6.mk@cognitivedissonance.ca> <20110605091733.d18bf622.mk@cognitivedissonance.ca> From: Mark Hahn Date: Sun, 5 Jun 2011 13:14:31 -0700 Message-ID: Subject: Re: Updates To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf303a2fd7a6ee8604a4fca3a8 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303a2fd7a6ee8604a4fca3a8 Content-Type: text/plain; charset=ISO-8859-1 jquery.couch.js isn't great. It has sloppy code and at one point it even uses a synchronous ajax call (hisss). I had to change that to an async call to run it in node at all. Also you would need my jquery.domless.js. This is a jquery I wrote that only has the features needed to run jquery.couch.js. So it is mainly an http.client in node that uses the jquery ajax api. It wasn't hard to code, thanks to the awesomeness of node. I'll never understand why microsoft implemented a synchronous ajax call. I guess the just don't really get it. On Sun, Jun 5, 2011 at 6:17 AM, MK wrote: > On Sat, 4 Jun 2011 11:25:37 -0700 > Mark Hahn wrote: > > > I don't want to duplicate/rewrite them for couch. > > > > I'm using nodejs and I created a nodejs version of jquery.couch.js so > > I can run my couchdb access code on either the server or the client > > with zero changes. > > Sounds like a great idea; I'm using node as well, and haven't looked at > jquery.couch.js (thanks for the tip). > > Since they both use commonjs, presuming the couchdb request object > available in shows is the same as the request object in node (for > getting cookies and ip's), I guess they could share some module code, > and, at least for the shows, I could then query couch direct from the > client. > > I probably won't bother with that, but it'd be a nice option (where it > works). > > It would be great would be to see the commonjs/server side js realm > get worked out to provide standard module classes for stuff like > requests (a la perl's CPAN), et. al., esp. if those modules could be > compiled XS style (from C/C++). > > MK > > -- > "Enthusiasm is not the enemy of the intellect." (said of Irving Howe) > "The angel of history[...]is turned toward the past." (Walter Benjamin) > > -- Mark Hahn Website Manager mark@boutiquing.com 949-229-1012 --20cf303a2fd7a6ee8604a4fca3a8--