2009/6/18 francisco treacy <[email protected]>: > However from my html page it doesn't... I have the infamous problem of > trying to make an ajax request to another host (uncaught exception: > Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)).
Usual way to get response from server (as jquery.couch.js does) - xmlhttprequest, won't let you have response from another domain. jquery does trick for this -- includes <script> tag, but it automatically evaluates response as script, which gives you "invalid label" error. You should either use couchapp, which requires a command "couchapp push" to update attachments (and all design document) after every change, or setup some proxy like nginx to serve your static file from disk and forward other requests to couchdb. May be the other thing could be done - to make option "enclose json response in parens" for possibility of cross-domain requests to couchdb, which otherwise impossible, as far as I can see.
