comparison demo/noisy.ur @ 733:15ddd64a5113

Add more buttons to demo, to avoid effectful GET
author Adam Chlipala <adamc@hcoop.net>
date Thu, 16 Apr 2009 15:38:01 -0400
parents 1a317a707d71
children a44daa674810
comparison
equal deleted inserted replaced
732:5819fb63c93a 733:15ddd64a5113
23 alert (case ao of 23 alert (case ao of
24 None => "Nada" 24 None => "Nada"
25 | Some a => a); 25 | Some a => a);
26 check ls' 26 check ls'
27 27
28 fun main () = 28 fun action () =
29 idAdd <- source ""; 29 idAdd <- source "";
30 aAdd <- source ""; 30 aAdd <- source "";
31 31
32 idDel <- source ""; 32 idDel <- source "";
33 33
39 <ctextbox source={aAdd}/><br/> 39 <ctextbox source={aAdd}/><br/>
40 <br/> 40 <br/>
41 <button value="Delete" onclick={id <- get idDel; del (readError id)}/> 41 <button value="Delete" onclick={id <- get idDel; del (readError id)}/>
42 <ctextbox source={idDel}/> 42 <ctextbox source={idDel}/>
43 </body></xml> 43 </body></xml>
44
45 fun main () = return <xml><body>
46 <form><submit value="Begin demo" action={action}/></form>
47 </body></xml>