Please, provide more information/code
The link you posted doesn't work right now, please review it
If can be useful, web2py uses twitter typeahead in the editor sidebar 
(admin app), it is worth to have a look to that code too

Paolo

On Thursday, October 17, 2013 3:41:38 AM UTC+2, NeelSheyal wrote:
>
> 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.

Reply via email to