Massimo,

> yes but you will need to hardcode the URLs instead of using URL(...).

So the URLs in web2py_ajax and the custom controller would read like:

> > response.files.insert(0,URL(r=request,c='static',f='jquery.js'))

response.files.insert(0,'http://files.example.com/js/jquery.js')


> > response.image=URL(r=request,c='static',f='cms/media/default_1.jpg')

response.image='http://files.example.com/cms/media/default_1.jpg'


I guess to stay away from hard coding the URLs I could also create a
files application and
serve the files from there?

Kind regards,

Annet.

--

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