javascript - How to redirect to a new page using auto form and iron router? -


so have built auto form using autoform. want redirect new page displaying new templates after form has been submitted. how can ??

here html code: ultimatum game

<body>   <div class="container">   <div class="navbar"><h1>the ultimatum game</h1></div>  {{> player}}   </div> </body>  <template name="player">   {{> quickform collection="playerslist" id="insertlist" type="insert"       }} </template> 

how redirect new q/a page after user submits it.

make redirect in event handler:

template.player.events({   'submit form': function(e, t) {     router.go('newpath');   }, }); 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -