>
> trying to find out more about $.web2py.component, but it's not in the
> book. Chapter 11 mentions web2py_ajax_component but it isn't mentioned
> in Chapter 12 as indicated.
It used to be web2py_component (actually, you can still use that), but now
it's $.web2py.component.
Anthony, I don't understand "If you want to dynamically add a component in
> the browser, you cannot use the LOAD helper...." as the example also
> includes a {{= }}. Then again, I don't really understand javascript
> either.
The example includes the URL of the component, which is fixed, not dynamic.
> When to use LOAD or $.web2py.component ?
>
LOAD will result in the component loading as soon as the parent page loads.
If you instead need a component to appear at some later time as a result of
some user action, then you have to call $.web2py.component directly.
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 [email protected].
For more options, visit https://groups.google.com/d/optout.