[web2py] Re: multiple form in 1 page using tab

2017-08-12 Thread 黄祥
thanks for the hints paolo, test the active tab logic but the result is same without condition (after submit the active tab is back to it's own class) my code above is not working as expected due to javascript i forgot to put in the views side e.g. {{if response.new_window:}} jQuery(docu

[web2py] Re: multiple form in 1 page using tab

2017-08-12 Thread Paolo Caruccio
Maybe the issue is due to class 'active' in the view. To be honest, I did not fully understand your question but the following code - for example - should show the tab with the submitted form. *controllers/default.py* def report(): query = (db.table_0.id > 0) #redirect_url_0 = 'report_de