Oh, one more minor suggestion, shouldn't we add some description about
this new feature into the build-in document of "example 6" in this
page?
http://www.web2py.com/examples/default/examples
In fact I tried to write a couple more examples for Massimo to show
the new "info" and "warn" class, but then I found out that the example
app uses a somewhat different style.css and does not like the latest
style.css, so I give up, but at least I still suggest that it is
worthy to mention this in "example 6":
Since 1.61.3, you can have different kinds of message showing in
different style:
response.flash=DIV("it is fine",_class="info")
or:
response.flash=DIV("mmmm...",_class="warn")
or:
response.flash=DIV("Oops!",_class="error")
On Apr19, 11:25pm, mdipierro <[email protected]> wrote:
> yes we can do that. I can include a warn, info and error in different
> colors.
>
> Massimo
>
> > On Sun, Apr 19, 2009 at 10:04 AM, mdipierro <[email protected]> wrote:
>
> > > BTW... one can also do
>
> > > response.flash=DIV("this is a message",_class="warn")
>
> > > and then declare a class "warn" in the CSS.
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---