On Sat, Sep 18, 2010 at 7:21 AM, Ido Ran <[email protected]> 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 <[email protected]> wrote: > >> On Sat, Sep 18, 2010 at 5:11 AM, Tyler Gillies <[email protected]> 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
