Re: [web2py] $.web2py is undefined
What I'm trying to do is to only load a tab content when its shown, then it loads with the web2py_component... Would you do differently? How so? It works on the first time... but then I get the undefined error... terça-feira, 8 de Agosto de 2017 às 20:38:05 UTC+1, Richard escreveu: > > I would have embeded all the bts codes in the web2py component... You > appears to try to apply bootstrap tabs feature over 2 differents web2py > component, this doesn't make much sens, I guess it all coming from there... > > Richard > > On Tue, Aug 8, 2017 at 3:34 PM, Richard Vézina <ml.richa...@gmail.com > > wrote: > >> Why doing that with web2py_component?? >> >> On Tue, Aug 8, 2017 at 5:56 AM, Filipe Reis <fjed...@gmail.com >> > 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+un...@googlegroups.com . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- 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.
Re: [web2py] $.web2py is undefined
I would have embeded all the bts codes in the web2py component... You appears to try to apply bootstrap tabs feature over 2 differents web2py component, this doesn't make much sens, I guess it all coming from there... Richard On Tue, Aug 8, 2017 at 3:34 PM, Richard Vézina <ml.richard.vez...@gmail.com> wrote: > Why doing that with web2py_component?? > > On Tue, Aug 8, 2017 at 5:56 AM, Filipe Reis <fjedr...@gmail.com> 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. >> > > -- 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.
Re: [web2py] $.web2py is undefined
Why doing that with web2py_component?? On Tue, Aug 8, 2017 at 5:56 AM, Filipe Reis <fjedr...@gmail.com> 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. > -- 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.
[web2py] $.web2py is undefined
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.