You can do:

def index():
    response.files.append('http://...')
    script=SCRIPT('...js goes here...')
    return dict(script=script)

If you get an error in response.files.append(...) you have an old
web2py version. ;-)


On Nov 30, 2:48 am, haftish21 <haftis...@gmail.com> wrote:
> Dear md,
> this looks hopefully the right solution, but I'm getting the ff
> AttributeError repeatedly,
>
> >>>'NoneType' object has no attribute 'append'
>
> in f='whatever.js'', can I put the url of the online js library or the
> file path by saving it in my directory.

--

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.


Reply via email to