response.flash is used to set a fixed content into the layout.html
This happens to be a <div class="flash"></div> in the scaffolding app.
That being said, you can't update the contents without refreshing the page, 
and / or using ajax. 
The implementation relies entirely on how your app works (i.e. how the page 
fetches the "progress" of the "process steps").
web2py.js has a js function to update the contents of the flash message and 
to display it (because usually it's hidden).
try 
$.web2py.flash(message, status)

it will insert "message" into the flash and add "status" classes to the 
corresponding div.




On Sunday, November 3, 2013 1:37:26 PM UTC+1, Andreas Wienes wrote:
>
> Hello,
>
> I try to use response.flash() to inform my users whats happening on my 
> website. Is there a way to quick update the displayed message?
>
> Example:
> User clicks on a button, response.flash() informs about the start of a 
> process.
> The user waits, response.flash() informs about several process steps and 
> after the process has finished, the response.flash() informs about the 
> result of the process.
>
> Or is there a better way instead using response.flash()
>
> Best regards
> - Andreas
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to