incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Tetlaw <and...@tetlaw.id.au>
Subject Re: javascript on localhost can't access localhost:5984?
Date Wed, 17 Dec 2008 13:10:17 GMT
I'm on Mac OS X, so I just setup a reverse proxy/URL rewriting for the  
built-in apache server.

so that, say, my local app is at http://locahost/app, all the Ajax  
requests are made to http://locahost/app/db

I used this example to help me:
http://scratchpad.cmlenz.net/c46dc41f72de36121197c6e03ddbf978/

Thanks Mr Lenz, worked like a charm.


On 17/12/2008, at 1: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
> matt@tplus1.com
> http://tplus1.com



--
Andrew
http://tetlaw.id.au




Mime
View raw message