web2py_ajax_page("get", URL, null , DIV_ID)

This function is included in web2py.js

On Jan 28, 10:03 am, scausten <[email protected]> wrote:
> I'd like to asynchronously load one of a choice of components into a
> view, based on a user selection after the page has loaded. It's
> relatively trivial to do this by changing the src on an iFrame which
> embeds the component view, but this doesn't feel like a web2py-ish way
> of doing things.
>
> It would be great to be able to do something like pass the component
> to the view in the form something like (obviously this is currently
> impossible):
>
> LOAD('controller','function.load',target='componentTarget',deferRender=True )
>
> Then do a js call:
>
> $('#componentTarget').render()
>
> to create the component on the page.
>
> Any ideas?

Reply via email to