couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: Retrieving Revision ID
Date Thu, 15 Dec 2011 17:17:37 GMT

On Dec 15, 2011, at 6:07 AM, <venugopal.raju@fit.fraunhofer.de<mailto:venugopal.raju@fit.fraunhofer.de>>
<venugopal.raju@fit.fraunhofer.de<mailto:venugopal.raju@fit.fraunhofer.de>> wrote:

Now I want to attach an image to this DocumentID (DocumentID in this case
is the timestampVariable) using xhr HTTPClient, now the thing is that I
need the Document RevisionID to do that. How can I retrieve the RevisionID
string of this documentID in a variable using xhr...?

The revision ID is in the ‘rev’ parameter of the JSON reply body of the PUT that created
the document. Just pull it out of the XHR response.

—Jens

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message