In Javascript, you can call:
$.web2py.component('{{=URL(...)}}', 'my_component')
where 'my_component' is the id of the component div. You can use the LOAD
helper to generate the div (with LOAD(..., target='my_component')), or just
create an empty div with that id.
Anthony
On Thursday, September 28, 2017 at 3:42:08 PM UTC-4, Yan Wong wrote:
>
> I have a LOAD() helper in a view, but that view itself gets loaded into my
> main page using the jQuery load() function, after a user interaction. That
> means the standard web2py events aren't attached to the LOAD() helper, and
> it is just permanently displayed as "loading...". Is there some javascript
> (presumably defined in web2py.js that I can call on the dive generated by
> the LOAD() component to force it to load properly?
>
> Cheers
>
> Yan
>
--
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.