You don't need to do it that way. Just import json -- see
https://groups.google.com/d/msg/web2py/9WnoALNHxTI/54cTUgHNBgAJ.
Anthony
On Thursday, June 29, 2017 at 12:36:42 PM UTC-4, Filipe Reis wrote:
>
> Got it all working now. It was a problem with using response.json to parse
> the flash message.
>
> To future reference this is how it is:
>
> var w2p_flash = {{=XML(response.flash) if response.flash else 'null'}};
> if (w2p_flash) {
> var w2p_flash = jQuery.parseJSON(JSON.stringify(w2p_flash));
> $.notific8(w2p_flash.message, w2p_flash.options);
> }
>
>
--
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/d/optout.