incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Altmann <altm...@wi-kassel.de>
Subject Re: CouchDB remote JavaScript Calls
Date Thu, 05 May 2011 13:28:43 GMT
Cool, that works. Thx a lot

2011/5/5 Paulo Edgar Castro <pauloedgarcastro@gmail.com>:
> 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
>>
>
>



-- 
Universität Kassel
Wirtschaftsinformatik | Information Systems
Forschungszentrum IT-Gestaltung (ITeG) | Research Center for IS Design (ITeG)
http://www.inf.wirtschaft.uni-kassel.de | http://www.iteg.uni-kassel.de
Nora-Platiel-Straße 4 | 34127 Kassel | Germany
Tel. +(0)49 561 804 6061

Mime
View raw message