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))