Mercurial > urweb
view tests/parseInt.ur @ 1835:a8b273f1f7e3
add Placeholder attribute to <password>; change <textbox> code generation to set 'type' to 'text'
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 30 Nov 2012 10:02:13 -0500 |
parents | 4798ad652c94 |
children |
line wrap: on
line source
fun main () : transaction page = s <- source ""; return <xml><body> <ctextbox source={s}/> <button onclick={n <- get s; case read n of None => alert "Invalid" | Some n => alert (show (n + 1))}/> </body></xml>