We probably need to see more code. It is not quite clear when/where you are 
getting that error. If all the code you have shown below is on the same 
page, you could not get that error with one tab but not the other, as 
obviously $.web2py is either defined or not on that page.

Anthony

On Tuesday, August 8, 2017 at 5:56:31 AM UTC-4, Filipe Reis wrote:
>
> 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