On Thursday, January 18, 2018 at 1:01:37 PM UTC-8, Dave S wrote: > > > > On Thursday, January 18, 2018 at 11:58:47 AM UTC-8, Andrea Fae' wrote: >> >> Anthony, you are very good teacher. But can I have a couple of examples >> using web2py and javascript? thank in advance. >> > > The first example (a simple one, but a starting point) is in the section > Anthony mentions. For easy scrolling, it is the paragraph just above > <URL: > http://web2py.com/books/default/chapter/29/12/components-and-plugins#LOAD-signature > > >
I would add that the code you invoke as a component is just another exposed function in your controller, the same technique as used for the parent page. I have an example or two where the same function is either a standalone page or a component, the difference being in the view (myfunc.html and myfunc.load), and the component call automatically looks for the dot-load version. /dps -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

