Thank you both for your replies.

I finally found the issue has nothing to do with the controller and views.

I am using a CDN to get jquery, in layout.html I've got:


<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>

 {{include 'web2py_ajax.html'}}


and from web2py_ajax.html I removed the following line.

response.files.insert(0, URL('dbmodel','static','js/jquery.js'))


putting the line back in web2py_ajax.html solves the issue.

I don't understand why I cannot use a CDN, jquery loads before
web2py_ajax.html is being included.


Kind regards,

Annet

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to