summaryrefslogtreecommitdiff
path: root/demo/roundTrip.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/roundTrip.ur
parent431abe6b2d53ed42d5019a5263e8014de8920eb4 (diff)
Add more buttons to demo, to avoid effectful GET
Diffstat (limited to 'demo/roundTrip.ur')
-rw-r--r--demo/roundTrip.ur6
1 files changed, 5 insertions, 1 deletions
diff --git a/demo/roundTrip.ur b/demo/roundTrip.ur
index a0d29bf6..c3a111b7 100644
--- a/demo/roundTrip.ur
+++ b/demo/roundTrip.ur
@@ -6,7 +6,7 @@ fun writeBack v =
r <- oneRow (SELECT channels.Channel FROM channels WHERE channels.Client = {[me]});
send r.Channels.Channel v
-fun main () =
+fun action () =
me <- self;
ch <- channel;
dml (INSERT INTO channels (Client, Channel) VALUES ({[me]}, {[ch]}));
@@ -28,3 +28,7 @@ fun main () =
<dyn signal={Buffer.render buf}/>
</body></xml>
end
+
+fun main () = return <xml><body>
+ <form><submit value="Begin demo" action={action}/></form>
+</body></xml>