couchdb-xd icon indicating copy to clipboard operation
couchdb-xd copied to clipboard

fail to load pmxdr

Open hackervera opened this issue 14 years ago • 3 comments

Uncaught ReferenceError: pmxdr is not defined couchdb.js:95

hackervera avatar Sep 12 '10 07:09 hackervera

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.

benvinegar avatar Sep 17 '10 17:09 benvinegar

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) { });
        });

benvinegar avatar Nov 01 '10 02:11 benvinegar