@Martin: Thanks, understanding it will hopefully help me remember. @Goog:saveDoc() is a function included in jquery.couch.js. You can use it whenever you reference jquery.couch.js. To reference it I have this line in the header of the document: <script type="text/javascript" src="js/jquery.couch.js"></script> where you have to replace js/ with your own path to where jquery.couch.js is in your project. Hope I got your question right.
Alex On Sun, May 20, 2012 at 1:13 PM, Martin Higham <mar...@ocasta.co.uk> wrote: > _id and _rev are field names within a document, whereas the non-underscore > versions are copies of those values. > > On 20 May 2012 11:35, Goog Cheng <googch...@gmail.com> wrote: > > > On 05/20/2012 06:16 PM, Alexander Gabriel wrote: > > > >> I am using jquery.couch.js. > >> In a openDoc() the return key for the _id is named "_id". > >> In a saveDoc() the return key for the _id is named "id". > >> Looking in Firebug at the get and put requests that are beeing sent the > >> reason seems to be the answer of couchdb to a put > >> request: {"ok":true,"id":"**181aa4dc7fd13af83aee8af9090067** > >> 5c","rev":"43-**69c0afda410423339da0caf97dc9c9**94"} > >> This difference in naming does not seem to be a very relaxing feature > and > >> it id the cause of a whole bunch of errors in my app. > >> Is there a reason why couchdb calls its DocId sometimes "_id" and other > >> times "id"? > >> Knowing this reason might help me prevent future errors... > >> Alex > >> > >> yes, saveDoc is the id , can saveDoc() function be used out of a > > couchapp (in a common html ) ? > > >