On Sunday, December 6, 2015 at 7:15:04 PM UTC-5, Jason Solack wrote: > > Sorry i'm not clear! I'm trying to break up a reporting site and my > initial idea was to use several LOAD components where in the past i was > using ajax calls. I like the component framework as it seems i can return > HTML templates... it just feels cleaner. > > I have this component within the form, but i could keep all the components > outside the form if that is required to have them passed to their > corresponding controller. > > Another quick question on components. Is there a way to wait for them to > be loaded until called upon or must they be all loaded on the initial page > load? >
Still not quite clear what you are trying to do with the form (as it has no action nor submit button). Anyway, you can always manually load and/or reload a component as follows: First, create a div: <div id='mycomponent'></div> Then load a component into the div via: $.web2py.component('{{=URL('controller', 'function.load')}}', 'mycomponent' ); Anthony -- 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.