couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Altmann <altm...@wi-kassel.de>
Subject CouchDB remote JavaScript Calls
Date Wed, 04 May 2011 22:16:14 GMT
Hi everybody,

I'm a litte desperate. Perhaps you could help me. I'm now trying for
hours to connect to a couchdb server via javascript.
Do you have a good example how I can perform a JSON call to a database
in JS? I tried several libraries like accompagnied couch.js, jqcouchdb
(http://plugins.jquery.com/project/jqcouch) or via XMLHTTPRequest
(http://wiki.apache.org/couchdb/Getting_started_with_JavaScript). Best
it would be, if I could get the data from the external url of the
database, because of easy coding with Aptana - but I think it's not
possible because of Cross-Site-Scripting issues. My CouchDB now is
opened at http://maltmann.wi-kassel.de:5984. I got a connection inside
the server with the PHP tutorial
(http://wiki.apache.org/couchdb/Getting_started_with_PHP):
http://maltmann.wi-kassel.de/t/test.php. So I tried to get these
results to JavaScript: http://maltmann.wi-kassel.de/t/test.html , but
JS crops the result (see alert).

Help, would be really appreciated.

Best regards,

Matthias

Mime
View raw message