[web2py] Re: multiple functions in one view

2014-06-26 Thread Richard
Hi, I try to do exactly the same and have the following in my app: controller: def index(): response.js = '$.web2py.component(%s, target=graph1);' % URL('default', 'graph1.load') index.html: div id=graph1 style=width: 400px; height: 400px; margin: 0 auto /div graph1.load

[web2py] Re: multiple functions in one view

2014-01-21 Thread Anthony
You could put both the form and the grid in ajax components. When the form is submitted, it could send back a JS command to load the grid: In index.html: {{=LOAD('default', 'tracker_form.load', ajax=True)}} div id='content_grid'/div Change your two existing views to a .load extension (not

[web2py] Re: multiple functions in one view

2014-01-21 Thread En Ware
Thank you so much; this awesome I appreciate your time. On Tuesday, January 21, 2014 9:37:04 AM UTC-6, En Ware wrote: Hello, I am trying to figure out how to call more then function per view. I would like to be to have users fill out a form and and then as soon as they submit show the