couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Retrieving Revision ID
Date Thu, 15 Dec 2011 14:07:37 GMT
Dear members,

I am looking to attach an image to a Document.....

var xhr = Titanium.Network.createHTTPClient();
var url = ''+timestampVariable;'PUT',url);
var jsonData = '{"longitude":"'+longitude+'", "latitude":"'+latitude+'"}';

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...?

Best Regards,

View raw message