WHoa HOOOO !!!!! Thanks VAl that works !!!!
*Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Fri, Feb 15, 2019 at 2:39 PM Val K <valq7...@gmail.com> wrote: > > include arguments (that it should be json-serializable object) to pass to > js-code in the controller output: > > # controller.py > def foo(): > ... > js_args = dict(message = 'Hi there!') > return dict(..., js_args = js_args) > > > insert script into your view > > > <script type = "text/javascript"> > $(document).ready( > function(){ > {{=ASSIGNJS(args = js_args)}} // - converts js_args to `var > args = {"message": "Hi there!"};` > Swal.fire(args.message);; > } > ) > </script> > > > > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.