comparison tests/rform.ur @ 598:4c2c740c6931

Hooking a source into an input
author Adam Chlipala <adamc@hcoop.net>
date Sun, 11 Jan 2009 10:05:06 -0500
parents
children
comparison
equal deleted inserted replaced
597:d49d58a69877 598:4c2c740c6931
1 fun main () : transaction page =
2 s <- source "Hi";
3 return <xml><body>
4 <form>
5 <textbox{#A} source={s}/>
6 </form>
7 <a onclick={set s "NEW AND DIFFERENT"}>Change it up!</a><br/>
8 <br/>
9 Latest: <dyn signal={s <- signal s; return (cdata s)}/>
10 </body></xml>