couchdb-xd
couchdb-xd copied to clipboard
fail to load pmxdr
Uncaught ReferenceError: pmxdr is not defined couchdb.js:95
Are you calling Couch.init? The documentation isn't clear, but you need to do:
Couch.init(function() { // do couch commands when this callback hits });
Couch.init loads dependencies like pmxdr.
Hi fabio,
You need to restructure your code like this:
Couch.init(function() {
// execute on ready
var server = new Couch.Server('http://couchdb','','');
server.create(server, 'test', function(resp) { });
});