<form>
<input type="submit" onclick="jQuery('.flash').html('here should I
call flash').slideDown()">
</form>

On Feb 5, 8:34 am, Tomas Pelka <tompe...@gmail.com> 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<tompe...@gmail.com>  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 web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to