Solved. After much trial and error. Wish it was documented somewhere.
The steps are fairly straightforward:
1. {{include 'web2py_ajax.html'}}
2. place <div class="flash">{{=response.flash or ''}}</div> somewhere in
the body
3. <style> div.flash { position: fixed; float: right; padding: 10px;
top: 10px; right: 30px; opacity: 0.75; margin: 10px 10px 10px 10px;
text-align: center; clear: both; color: #fff; font-size: 11pt; text-align:
center; vertical-align: middle; cursor: pointer; background: black; border:
2px solid #fff; -moz-border-radius: 5px; -webkit-border-radius: 5px;
z-index: 2; } div.error { background-color: red; color: white; padding:
3px; }</style>
On Friday, 21 February 2014 22:47:17 UTC-5, horridohobbyist wrote:
>
> I'm trying to apply a new layout from a third-party CSS template. It
> generally works. However, I am unable to get any flash messages (eg,
> response.flash).
>
> Trying to merge two sets of CSS files is very tricky. What is the absolute
> minimum CSS/JS that I need to get flash messages (without dragging in
> unnecessary CSS that screws up my new layout)?
>
> Thanks.
>
--
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.