If you use the LOAD() helper, the component will load immediately. If you 
instead want to trigger a component to load at some other time, just create 
an empty div with an id:

<div id='component1'></div>

And to load the component via Javascript:

    $.web2py.component('{{=URL('mycontroller', 'mycomponent1.load')}}', 
'component1');

Anthony

On Monday, January 4, 2016 at 4:56:37 PM UTC-5, Jason Solack wrote:
>
> Hello all,
>
> I'm using a lot of LOADs in a current project and i'm wondering if there's 
> a way to not automatically render the LOAD content... as it stands now i'll 
> have a lot of hidden HTML and i'd like to only load the component when i 
> need it.
>
> Thank you in advance,
>
> Jason
>

-- 
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.

Reply via email to