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 <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.