summaryrefslogtreecommitdiff
path: root/demo/noisy.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-16 15:38:01 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-16 15:38:01 -0400
commit2f923a2b261ac47e5f44d26aa92b548bbad86e09 (patch)
tree319480b616f48c0f2ec38e1673c2b89a1de79125 /demo/noisy.ur
parent431abe6b2d53ed42d5019a5263e8014de8920eb4 (diff)
Add more buttons to demo, to avoid effectful GET
Diffstat (limited to 'demo/noisy.ur')
-rw-r--r--demo/noisy.ur6
1 files changed, 5 insertions, 1 deletions
diff --git a/demo/noisy.ur b/demo/noisy.ur
index 708cfa2c..7f26eaf2 100644
--- a/demo/noisy.ur
+++ b/demo/noisy.ur
@@ -25,7 +25,7 @@ fun check ls =
| Some a => a);
check ls'
-fun main () =
+fun action () =
idAdd <- source "";
aAdd <- source "";
@@ -41,3 +41,7 @@ fun main () =
<button value="Delete" onclick={id <- get idDel; del (readError id)}/>
<ctextbox source={idDel}/>
</body></xml>
+
+fun main () = return <xml><body>
+ <form><submit value="Begin demo" action={action}/></form>
+</body></xml>