incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: $.couch.app.saveDoc
Date Sat, 18 Sep 2010 15:31:25 GMT
On Sat, Sep 18, 2010 at 7:21 AM, Ido Ran <ido.ran@gmail.com> 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 <jchris@apache.org> wrote:
>
>> On Sat, Sep 18, 2010 at 5:11 AM, Tyler Gillies <tyler@pdxbrain.com> 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

Mime
View raw message