Sorry Benoit,
This cannot be CORS, because its localhost call And you know that
with the standard replication of Couchdb it's totally obsolete
But it seems that ..
db.saveDoc(doc,{
success: function() {
alert("Hello World!");
}, <<<<<<<<<<<<<<<<<<<< this coma annouce a new parameter
who's missing here
});
Ph Koenig
aka Unclephil
tc.unclephil.net
On May 9, 11:43 am, goog cheng <
googch...@gmail.com> wrote:
> Hi, all ! i code below , it doesn't work out of couchdb , why?
>
> <script type="text/javascript">
> doc = { name: "John", location: "Boston" }
> document.write(
doc.name);
> db = $.couch.db("
http://chengjie:cheng...@127.0.0.1:5984/contacts");