Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 13444 invoked from network); 18 Sep 2010 15:32:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Sep 2010 15:32:12 -0000 Received: (qmail 59045 invoked by uid 500); 18 Sep 2010 15:32:10 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 58878 invoked by uid 500); 18 Sep 2010 15:32:09 -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 58869 invoked by uid 99); 18 Sep 2010 15:32:08 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 15:32:08 +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 jchris@gmail.com designates 209.85.212.52 as permitted sender) Received: from [209.85.212.52] (HELO mail-vw0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 15:31:47 +0000 Received: by vws14 with SMTP id 14so3764545vws.11 for ; Sat, 18 Sep 2010 08:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=5yO2H9R6onU2sWOE1GRb3D8XoGkUwkKDbPMOL+4sVrg=; b=lLSc4JVOVILPPPh7WDbCT7a8YshItWVhlX9jUNZ2axrZx7N/SNRB5DdPaEVOywJS2L BjEI9aZCglOwr9z3sb/ppStW/ySansrb4JJczFQv/pWqKg1YUUImPpwae4IEl8JhZJti o0IStRykMt87G6BLbyqFPdZG7iCm7ewuGli0U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=WWAEAtt89OXs2uQ1cN+qk/BSQth1KYA1HDsg5oKxZ0lqRnbd7x2PQqu6l4aPCSd37A c2fItT6mSAkgJthL/U4BY7MPP/nsshIe2pN/U7TzuM8rrGC8ArjyA7JdtbrgiOBpkfkT zUBcfjThIyHWDQUKAfmwt6Ev+HqqgjSp9mhE0= MIME-Version: 1.0 Received: by 10.220.57.193 with SMTP id d1mr3422487vch.259.1284823885678; Sat, 18 Sep 2010 08:31:25 -0700 (PDT) Sender: jchris@gmail.com Received: by 10.220.99.134 with HTTP; Sat, 18 Sep 2010 08:31:25 -0700 (PDT) In-Reply-To: References: Date: Sat, 18 Sep 2010 08:31:25 -0700 X-Google-Sender-Auth: d42Z5PxNpi0l3euOdsY9tw3SYv8 Message-ID: Subject: Re: $.couch.app.saveDoc From: Chris Anderson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Sep 18, 2010 at 7:21 AM, Ido Ran wrote: > It's not exactly about this problem but where is the code of $.couch.db and > $.couch.login is actually at? > I've looked in jquery.couch.app.js and jquery.couch.app.util.js but there is > nothing there. it is part of futon: http://jchris.couchone.com/_utils/script/jquery.couch.js or http://localhost:5984/_utils/script/jquery.couch.js > > Thank you, > Ido > > On Sat, Sep 18, 2010 at 4:08 PM, Chris Anderson wrote: > >> On Sat, Sep 18, 2010 at 5:11 AM, Tyler Gillies wrote: >> > How do i save a doc with a custom doc_id using the $.couch object? >> > >> >> >> So, when dealing with $.couch.app, keep in mind that it is not a >> CouchDB client, it is just a wrapper script around jquery.couch.js, so >> the answer you are looking for is in $.couch.db(foo).saveDoc() >> >> Just save an object like >> >> { >> _id : "myid", >> ... >> } >> >> Chris >> >> > -- >> > http://www.readwriteweb.com/about#tyler >> > >> > My website: http://list.pdxbrain.com >> > >> >> >> >> -- >> Chris Anderson >> http://jchrisa.net >> http://couch.io >> > -- Chris Anderson http://jchrisa.net http://couch.io