function said_action() { Html.form({ callback: function() { var foo = req.data.foo; Html.link({ callback: function() { res.write("you said: " + foo); } }, "click here") }, method: "post"}, Html.Input({name: "foo"}), Html.Submit() ); }
function said_action() { var foo; var step1 = function() { foo = req.data.foo; Html.link({ callback: step2 }, "click here"); }; var step2 = function() { res.write("you said: " + foo); }; Html.form({callback: step1, method: "post"}, Html.Input({name: "foo"}), Html.Submit() ); }
-----