python - ways to avoid previous reload tornado -


i have 2 forms, when submit form#1 corresponding file, when submit form#2 thenafter, corresponding file gets shown form#1 goes empty. want thing spa(e.g angular) taking form#1 , form#2 separate requests routes , each render index.html every time, form#2 wiped off when submit form#1 , vice-versa.

i dont want working code ideas on how tornado (not angular, or tornado + angular ? )

i think 1 way example handle these requests via controller , ajax post corresponding tornado handler, after file rendered, displays / serves file again. uses angularjs spa. other solution possible?

thanks in advance

this not tornado question, how web works.

one possible solution have 1 form, display fields 2 forms; in addition, have 2 separate submit buttons, each own name , value. now, when click on either button whole form submitted, in handler can process fields associated clicked button, while still displaying values in fields.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -