Mercurial > urweb
annotate tests/parseInt.ur @ 1924:b44138e6a3bf
Add activeHead tag.
activeHead is similar to active but produces xhead instead of xbody
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Fri, 06 Dec 2013 13:59:39 +0400 |
parents | 4798ad652c94 |
children |
rev | line source |
---|---|
adam@1630 | 1 fun main () : transaction page = |
adam@1630 | 2 s <- source ""; |
adam@1630 | 3 return <xml><body> |
adam@1630 | 4 <ctextbox source={s}/> |
adam@1630 | 5 <button onclick={n <- get s; |
adam@1630 | 6 case read n of |
adam@1630 | 7 None => alert "Invalid" |
adam@1630 | 8 | Some n => alert (show (n + 1))}/> |
adam@1630 | 9 </body></xml> |