Hi Mathias

I think that this ( allow_jsonp ) is what you require to add to your local.ini or within local.d.
Please re-check CouchDB documentation.

[httpd]
;port = 5984
;bind_address = 127.0.0.1
bind_address = 0.0.0.0
allow_jsonp = true

Regards,


            PECastro

On 04/05/11 23:16, Matthias Altmann wrote:
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


Reply via email to