Re: [web2py] Re: Refresh DIV onclick

2015-01-09 Thread Richard Vézina
You should also use session.flash instead of response.flash if you want your flash message to pop in the right place, I mean in your reloaded component after the form it contains has been submitted... Richard On Fri, Jan 9, 2015 at 1:32 PM, Richard Vézina wrote: > Is you LOAD() in view surround

Re: [web2py] Re: Refresh DIV onclick

2015-01-09 Thread Richard Vézina
Is you LOAD() in view surrounding with a div? like so : wrote: > > > On Friday, 7 November 2014 09:19:40 UTC+11, Tim Richardson wrote: >> >> At first glance it seems to me that you should use LOAD components on the >> page. Read that chapter. You will process answers via Ajax (web2py >> submit

[web2py] Re: Refresh DIV onclick

2014-11-06 Thread Tim Richardson
On Friday, 7 November 2014 09:19:40 UTC+11, Tim Richardson wrote: > > At first glance it seems to me that you should use LOAD components on the > page. Read that chapter. You will process answers via Ajax (web2py > submits a LOAD form via Ajax automatically). You can refresh the div when >

[web2py] Re: Refresh DIV onclick

2014-11-06 Thread Tim Richardson
At first glance it seems to me that you should use LOAD components on the page. Read that chapter. You will process answers via Ajax (web2py submits a LOAD form via Ajax automatically). You can refresh the div when your processing of answers is complete. -- Resources: - http://web2py.com -

[web2py] Re: Refresh DIV onclick

2014-11-06 Thread Tim Richardson
At first glance it seems to me that you should use LOAD components on the page. Read that chapter. You will process answers via Ajax (web2py submits a LOAD form via Ajax automatically). You can refresh the div when your processing of answers is complete. -- Resources: - http://web2py.com -

[web2py] Re: Refresh DIV onclick

2014-11-06 Thread LoveWeb2py
Did anyone have an alternative? On Thursday, October 16, 2014 12:08:18 AM UTC-4, LoveWeb2py wrote: > > UPDATE: This works well for me after the form submits: redirect( > request.env.http_web2py_component_location,client_side=True) > > That came straight from the book, but its when the student get

[web2py] Re: Refresh DIV onclick

2014-10-15 Thread LoveWeb2py
UPDATE: This works well for me after the form submits: redirect( request.env.http_web2py_component_location,client_side=True) That came straight from the book, but its when the student gets a question wrong is where I'm running into trouble. I'd like to just refresh the div so they could contin