Hi, I am trying to hook the tags manager (lldonethings.com/tags/manager/v3) with web2py ajax functionality. Tags manager uses Twitter typeahead.js to prefetch data. Here is what I am doing:
View: ========= 1. var tagApi = jQuery("#your_pretty_id").tagsManager({ 2. prefilled: ["Angola", "Laos", "Nepal"] 3. }); 4. 5. jQuery("#your_pretty_id").typeahead({ 6. name: 'countries', 7. limit: 15, 8. prefetch: "{{=URL('default', 'getTags')}}" 9. }).on('typeahead:selected', function (e, d) { 10. 11. tagApi.tagsManager("pushTag", d.value); 12. 13. }); Controller/default.py ======================== def getTags(): months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September' ,'October', 'November', 'December'] return response.json(months) However, I the controller function is not getting triggered and the drop down menu is not appearing. Can someone please provide some guidance? Thanks, Neel -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.