It seems session.flash must be empty at that point, though hard to say why
without seeing all the relevant code.
On Thursday, January 5, 2017 at 11:52:33 AM UTC-5, Ramos wrote:
>
> it appears "empty"
> anyway i changed it to test a more simpler approach so...
>
>
> {{if session.flash:}}
> *
it appears "empty"
anyway i changed it to test a more simpler approach so...
{{if session.flash:}}
**
* toastr.info <http://toastr.info>("popup message");*
**
×
{{=T("Notification")}}: {{=s
>
> *But this does not work!!*
>
> flash="{{=session.flash or 'empty'}}";
>
> if (flash=="")
> {
> toastr.info(flash);
> }
>
>
>
> how to fix this ?
>
What do you mean "does not work"? Please check the HTML source code in the
browser -- does the correct va
2017-01-05 12:54 GMT+00:00 Áureo Dias Neto :
> flash="{{='N/A' if session.flash == None else session.flash}}";
does not work also
if i just do
toastr.info("{{=session.flash}}");
I always get the poput with "None"
--
Resources:
- http://web2py.com
- http://web2py.com/book (Docum
Change 'flash="{{=session.flash or 'empty'}}";' to:
flash="{{='N/A' if session.flash == None else session.flash}}";
2017-01-05 10:40 GMT-02:00 António Ramos :
> session.flash="Documento enviado ..."
> redirect(URL(c="entities",f="list",user_signature=True))
>
> *this works and shows "Documen
session.flash="Documento enviado ..."
redirect(URL(c="entities",f="list",user_signature=True))
*this works and shows "Documento enviado"*
{{if session.flash:}}
×
{{=T("Notification")}}: {{=session.flash}}
{{pass}}
*But this
How you define 'session.flash'?
2017-01-05 10:04 GMT-02:00 António Ramos :
> in fact this
>
>
> toastr.info("{{=session.flash}}");
>
>
>
> always produces a popup saying "None"
>
> why?
>
>
> 2017-01-05 11:50 GMT+00:00 António Ramos :
>
>> *this works*
>>
>> {{if session.fl
in fact this
toastr.info("{{=session.flash}}");
always produces a popup saying "None"
why?
2017-01-05 11:50 GMT+00:00 António Ramos :
> *this works*
>
> {{if session.flash:}}
>
>role="alert">
> aria-label="Close">
> ×
>
>
8 matches
Mail list logo