diff tests/reactive3.ur @ 579:0094e0242100

Propagated a source change into a dynamic document element
author Adam Chlipala <adamc@hcoop.net>
date Tue, 30 Dec 2008 15:53:04 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/reactive3.ur	Tue Dec 30 15:53:04 2008 -0500
@@ -0,0 +1,7 @@
+fun main () : transaction page =
+  x <- source <xml>TEST</xml>;
+  return <xml><body>
+    <dyn signal={signal x}/>
+    <br/>
+    <a onclick={alert "Changing...."; set x <xml>CHANGEUP</xml>}>Oh My</a>
+  </body></xml>