incubator-couchdb-user mailing list archives

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

On Dec 15, 2011, at 6:07 AM, <<>>
<<>> 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.


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