How is that other sites the user ajax and longpoll does not keep the page
loading forever?
the setTimeout look like a patch, working one, but still a patch.

Ido

On Thu, Sep 16, 2010 at 12:52 AM, Chris Anderson <jch...@apache.org> wrote:

> On Wed, Sep 15, 2010 at 1:59 PM, Ido Ran <ido....@gmail.com> wrote:
> > Hi,
> > I have to say that Focus really works much better.
> > Both in desktop browser and in the iPhone the site now loaded and update
> in
> > the background.
> > If you can explain what you did different in little more detail it will
> be
> > great.
> >
>
> There is a lot different, the big change is here, I think:
>
> http://github.com/couchone/Focus/blob/master/_attachments/index.html#L30
>
> > Thank you,
> > Ido
> >
> > On Wed, Sep 15, 2010 at 9:06 PM, Chris Anderson <jch...@apache.org>
> wrote:
> >
> >> On Wed, Sep 15, 2010 at 7:12 AM, Ido Ran <ido....@gmail.com> wrote:
> >> > I'm not an expert, but I think it is longpoll.
> >> > I can see the parameter in the querystring when I run the same
> >> application
> >> > on CouchDBX.app on my local machine.
> >> >
> >> > It is the taskr application from github.
> >> >
> >>
> >> I tried to fix this in Focus, by wrapping the entire thing in a
> setTimeout
> >>
> >> try: http://github.com/couchone/Focus and see if it is any better.
> >>
> >> Chris
> >>
> >> > Ido
> >> >
> >> > On Wed, Sep 15, 2010 at 4:08 PM, Benoit Chesneau <bchesn...@gmail.com
> >> >wrote:
> >> >
> >> >> On Wed, Sep 15, 2010 at 4:06 PM, Ido Ran <ido....@gmail.com> wrote:
> >> >> > Hi,
> >> >> > I've try to view my CouchApp using my iPhone and found something
> not
> >> so
> >> >> > good: Because CouchApp use _changes feature of CouchDB by long
> polling
> >> on
> >> >> > the server the address bar of the iPhone Safari never goes away.
> >> >> > Most users will not understand why it is and frankly it pretty
> >> annoying.
> >> >> > If also happen on any desktop browser but there it is somewhat less
> >> >> obvious.
> >> >> >
> >> >> > Can someone think of a clever solution?
> >> >> >
> >> >> > Thank you,
> >> >> > Ido
> >> >> >
> >> >>
> >> >> longpoll or continuous ?
> >> >>
> >> >
> >>
> >>
> >>
> >> --
> >> Chris Anderson
> >> http://jchrisa.net
> >> http://couch.io
> >>
> >
>
>
>
> --
> Chris Anderson
> http://jchrisa.net
> http://couch.io
>

Reply via email to