Matt, 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
http://github.com/jchris/couchdb-example-blog/tree/master 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. Chris On Tue, Dec 16, 2008 at 6:13 PM, Matthew Wilson <[email protected]> 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 > [email protected] > http://tplus1.com > -- Chris Anderson http://jchris.mfdz.com
