[web2py] Re: Is it possible to LOAD a component after a page has rendered?

2012-01-29 Thread scausten
Thanks! web2py easy, as always. On Jan 28, 11:24 am, Alan Etkin spame...@gmail.com wrote: You can use javascript onclick and the web2py.js function web2py_component(action,target) to load the source on demand. You need to set a target div or other element in the view previously and get the

[web2py] Re: Is it possible to LOAD a component after a page has rendered?

2012-01-28 Thread apple
web2py_ajax_page(get, URL, null , DIV_ID) This function is included in web2py.js On Jan 28, 10:03 am, scausten scaus...@gmail.com 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

[web2py] Re: Is it possible to LOAD a component after a page has rendered?

2012-01-28 Thread Alan Etkin
You can use javascript onclick and the web2py.js function web2py_component(action,target) to load the source on demand. You need to set a target div or other element in the view previously and get the triggered event's DOM element id with jQuery to pass it with the url/action string.