I can't imagine how to do this:

"You would have to break a view into
pieces, have an iterator process the pieces separately, return the
iterator."

Maybe using ajax I can achive this? Flush the content to a div?

someone can post a example?



2011/1/10 Massimo Di Pierro <[email protected]>

> Not possible in web2py without major refactoring. That is because the
> view is a program that needs to run in order to produce an output.
>
> One way to do would be to have an action return an iterator. Each term
> in the iterator is flushed. You would have to break a view into
> pieces, have an iterator process the pieces separately, return the
> iterator.
>
>
> Massimo
>
>
> On Jan 10, 3:59 pm, Alexandre Andrade <[email protected]>
> wrote:
> > In php, you can flush the data with the flush() function.
> >
> > It allows to send the data to the browser without wait for the rest of
> code.
> >
> > It's useful when you are doing a intensive computing task or a long time
> > task and need send a answer to the user whie he waits.
> >
> > My question is:
> >
> > There is a way to do this with web2py?
> >
> > --
> > Atenciosamente
> >
> > Alexandre Andrade
> > Hipercenter.com Classificados Gratuitos e Inteligentes
>



-- 
Atenciosamente


Alexandre Andrade
Hipercenter.com Classificados Gratuitos e Inteligentes

Reply via email to