Mr Freeze has a more elegant solution. I just do def index(): response.files.append(URL(r=request,c='static',f='whatever.js')) script=SCRIPT('...js goes here...') return dict(script=script)
On Nov 29, 1:46 am, haftish21 <haftis...@gmail.com> wrote: > Web2py view is successfully calling an online javascritpt library > under <script> tag, and to define some js functions that interact with > database back-end. But I''m just curious to put these js functions on > the controller, is that possible??? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.