couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson" <>
Subject Re: javascript on localhost can't access localhost:5984?
Date Wed, 17 Dec 2008 05:22:28 GMT

It's easy to store html in attachments to couchdb docs. For some
examples about how to do it, check out this github project, which is
an ajax blog that lives on couchdb

It uses a Ruby script which is part of my CouchRest library to upload
a directory structure into a design document. It's considered good
practice to keep all the components of an application in a single
design doc. This way, index.html and your views will replicate
together, etc.

Jan is working on a Python port of the `couchapp` script so hopefully
the install story will get cleaner.


On Tue, Dec 16, 2008 at 6:13 PM, Matthew Wilson <> wrote:
> I'm working on an html page hosted on localhost that uses javascript
> to pull some data from my local couchdb.
> I guess I'm running into the cross-domain issue, because I'm getting
> an error "access to restricted URI denied."
> Anyhow, if I want to interact with couchdb using javascript, how do I
> do it?  do I need to keep my HTML file in couchdb itself?
> Matt
> --
> Matthew Wilson

Chris Anderson

View raw message