When call singleview and submit the form it should print singleview, edit, edit. However it prints singleview, edit, singleview, edit. Why is the submit not trapped and sent via ajax to the edit controller?
controller..... def edit(): print("edit") table=db["customer"] form=SQLFORM(table,1) return dict(form=XML(form)) def singleview(): print("singleview") return dict() ************************* edit.load... {{=form}} **************************** singleview.... {{extend 'layout.html'}} {{=LOAD(f='edit.load', ajax=False, ajaxTrap=True)}}