Hey guys what I'm trying to do is using bootstrap tabs load other views 
using $.web2py.component() the first time it works but the the other 
controllers or tabs gives me TypeError: $.web2py is undefined. Anyone knows 
how to fix this issue?

$('.nav-tabs a[href="#tab_1"]').on('shown.bs.tab', function (e){
     $.web2py.component("{{=URL('ctr1','show', args=id, 
user_signature=True)}}", target="div1");
     return false;
});
$('.nav-tabs a[href="#tab_2"]').on('show.bs.tab', function (e){
     $.web2py.component("{{=URL('ctr2','show', args=id, 
user_signature=True)}}", target="div2");
     return false;
});

-- 
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/d/optout.

Reply via email to