Mercurial > urweb
view tests/globalHandlers.ur @ 1998:cc7e5d469d1b
Protect uw_Basis_new_client_source from invalid ctx->id
We assume that FFI code may create new contextes with id left unassigned
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Wed, 26 Feb 2014 09:43:47 +0000 |
parents | 2f8b8952fe27 |
children |
line wrap: on
line source
fun main () : transaction page = return <xml> <body onload={onDblclick (fn ev => alert ("ScreenX = " ^ show ev.ScreenX ^ "\nShiftKey = " ^ show ev.ShiftKey)); onKeypress (fn ev => alert ("KeyCode = " ^ show ev.KeyCode ^ "\nShiftKey = " ^ show ev.ShiftKey))}/> </xml> fun busy () : transaction page = return <xml> <body onload={onMouseout (fn _ => alert "OUT!"); onMouseover (fn _ => alert "OVER!"); onMousemove (fn _ => alert "MOVE!")}/> </xml>