I\'m trying to create a simple AJAX (via jQuery) request to http://yourusername.couchone.com/ (alsmost the same as if I had installed couchdb on localhost)
I'd say that MightyE's totally right, up to the postscript -- CouchOne does support JSONP. Go to http://YOURSITE.couchone.com/_utils/config.html and change allow_jsonp
in the httpd
section to true
. After that,
$.ajax({
url: 'http://yoursite.couchone.com/',
type: 'get',
dataType: 'jsonp',
success: function(data) {
alert(data.couchdb);
alert(data.version);
}
});
will work.