You might consider the work-around offered by jQuery 1.4.x to the same-origin problem.
A fragment like the following does the trick
JSON Call Test Page
The call that services the 'some.js' request just needs to return whatever JSON data you want the call to return. Since it's requesting a resource, and not really making an Ajax call - all is well.
Works like a charm where I've used the facility.
On Oct 15, 2010, at 2:41 PM, Paul Davis wrote:
> You'll need to read up on the Same Origin Policy:
> On Fri, Oct 15, 2010 at 2:34 PM, Fabio Batalha C Santos Santos
>> Hello everybody,
>> I'm newby in couchDB.
>> I'm trying to develop a "Google Analytics" like applications storing access log
>> metadata in a CouchDB database. Take a look at
>> The idea is:
>> metadata in a CouchDB database. It works like the ga.js Google Anaytics. In the
>> of couch.js functions to register logaccess metadata in CouchDB
>> The problem:
>> I'm trying to make use of the couch.js script but the couch.js on works if the
>> request is made from the same host and port were the CouchDB is installed.
>> Instead of it, my application is in a different host. How can I configure the
>> connection to the couchDB using the couch.js
>> Thanks in advance.
>> Fabio Batalha