JQuery.ajax dosen't works with http://127.0.0.1:5984

Help me with my problem, please! I used CouchDB and I used jquery.couch.js to communicate with the CouchDB server ( http://daleharvey.github.com/jquery.couch.js-docs/symbols/index.html ) but it doesn’t work ((Start of this script:

$.couch.urlPrefix = 'http://127.0.0.1:5984'
function getAllDBs(){
    $.couch.db('mysecondtest').allDocs({
        error: function(status, id, reason) {alert(status+' : '+id+' : '+reason);},
        success:function(data){
            alert(data);
        }

    });
}
getAllDBs(); 

return error:

405 Method Not Allowed localhost:5984

I think this means that the server perceives my request as a request for a remote server, but I do not know how to fix it. Please help me and sorry for my bad English))

+1
source share
2 answers

You get into a problem between domains.

You can use couchdb-xd

+2
source

Ajax . .

0

All Articles