incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From venugopal.r...@fit.fraunhofer.de
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 = 'http://128.27.160.65:5984/mc/'+timestampVariable;
xhr.open('PUT',url);
var jsonData = '{"longitude":"'+longitude+'", "latitude":"'+latitude+'"}';
xhr.send(jsonData);

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,



Mime
View raw message