incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zera Holladay <zeraholla...@gmail.com>
Subject Re: need help with jquery.couch
Date Sat, 15 Sep 2012 21:43:39 GMT
The calls are all async.  Add success callbacks like jQuery examples.
On Sep 15, 2012 5:27 PM, "john.tiger" <john.tigernassau@gmail.com> 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))
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message