Nice idea, but it doesn't work. The flash does not have enough time to show up and then the whole page is refreshed.
On Feb6, 1:47am, mdipierro <[email protected]> wrote: > <form> > <input type="submit" onclick="jQuery('.flash').html('here should I > call flash').slideDown()"> > </form> > > On Feb 5, 8:34 am, Tomas Pelka <[email protected]> wrote: > > > > > I was thinking about it a lot and I hope that I could use flash right > > from my form, like > > > <form> > > <input type="submit" onclick="here should I call flash"> > > </form> > > > But I have no idea how to call flash as js. Because it is typical > > js/ajax function, right? > > > On 02/05/2010 01:31 PM, Iceberg wrote: > > > > I believe you can run response.flash = "smoething" from view, although > > > I never try that. Lucky that all my views are simple enough, all my > > > codes are in controller. The MVC approach. > > > > When talking about showing "Analyzing ..." and then "Successful done", > > > I think you need AJAX. But there is no ready pattern for that AFAIK, > > > you need to arrange your web pages and actions, etc. > > > > On Feb5, 4:56am, Tomas Pelka<[email protected]> wrote: > > > >> -----BEGIN PGP SIGNED MESSAGE----- > > >> Hash: SHA1 > > > >> Hi all, > > > >> it possible run response.flash = "smoething" from view? > > > >> You know I need to display response.flash = "Analyzing ..." when I click > > >> on submit button and then response.flash = "Successful done" when > > >> everything is done. > > > >> Thanks for advice. > > > >> - -- > > >> Tom > > > -- > > Tom -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

