Re: [web2py] Reporting server side calculation progress via ajax

2013-01-29 Thread Vinicius Assef
Your problem number 1 is because you are commiting before p.update_record(). Put your db.commit() after p.update_record() and see what happens. Your problem number 2 probably is because your GetProgres() function should send a GET request. But your controller#2/GetProgress() is reading more rows

[web2py] Reporting server side calculation progress via ajax

2013-01-29 Thread Andriy
I have a time consuming server side calculation, which is triggered by edit-form submitting and can run up to several minutes (its a sports event data recalculation if rules are changed). During this time I want to receive messages via ajax from server and post them in a div for a progress visu