incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "john.tiger" <john.tigernas...@gmail.com>
Subject need help with jquery.couch
Date Sat, 15 Sep 2012 21:27:04 GMT
using couch 1.2 (debian unstable) in a simple html 5 page
I pulled jquery.couch.js from github  - is this right version to use ?  
trying to follow various references resulted in no data being shown.  
chrome js console not showing errors

working:
var test = $.couch.db("mydb");
alert("test"+ JSON.stringify(test));
=> alert shows name of database

not working:
var db = "mydb";
var test = $.couch.db(db);
alert("test"+ JSON.stringify(test));

not working:
var test = $.couch.allDocs();
alert("test"+ JSON.stringify(test));
(also did not work for allDbs, info, )

not working:
$db = $.couch.db("mydb");
var test = $db.allDocs();
alert("test"+ JSON.stringify(test));

not working:
$.couch.urlPrefix = "http://127.0.0.1:5984";
var test = $.couch.allDbs();
alert("test"+ JSON.stringify(test))



Mime
View raw message