Putting couch.js on the server wouldn't bypass the cross-domain problem.

I would suggest ignoring anything mobile and seeing how a web page would
bypass the cross-domain problem to get to CouchDB, since that's the problem
you're having (just that it's a mobile web page). IIRC, there was a
discussion on this list about it, and someone wrote a Node.js proxy for it,
but I only vaguely remember it.

Also, sometimes PhoneGap will bypass the cross-domain restriction. For
example, on iOS 4, you can get remote JSON all day long, but on iOS 3, you
have to use JSONP.

---
Keith Gable
A+ Certified Professional
Network+ Certified Professional
Web Developer



On Thu, Sep 15, 2011 at 7:40 AM, Wordit <[email protected]> wrote:

> On Thu, Sep 15, 2011 at 2:27 PM, Ajai Khattri <[email protected]> wrote:
> >
> > Sorry are you writing a web app that runs locally?
>
> It's an Android app which needs to query a hosted/remote couch via
> Javascript.
>
> I'm using PhoneGap, so the code is Javascript, HTML, CSS, but runs as
> an Android app.
>
> Thanks,
>
> Marcus
>

Reply via email to