--
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 web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If you simply want to change the display, you can add CSS rules that override those in web2py.css and/or web2py_bootstrap3.css (or edit those files). If you want to change the behavior, then you'll have to write some Javascript code, being mindful that it must work in conjunction with the code already in web2py.js.
If you need something more customized, then just be sure not to wrap {{=response.flash}} in a div with class "flash", as all the built-in CSS and Javascript code affects only divs with class "flash". Then you can implement your own styling and behavior.
Note, use of response.flash itself is not mandatory (you can pass a flash message to the view using any custom variable or response attribute you like), but it does provide some convenience as (a) during Ajax requests, response.flash will automatically get copied to a special custom HTTP header which can be read on the client, and (b) response.flash will get transferred to and from session.flash upon redirects.
Anthony
flash.fadeOut("slow")