The calls are all async.  Add success callbacks like jQuery examples.
On Sep 15, 2012 5:27 PM, "john.tiger" <[email protected]> wrote:

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

Reply via email to