<div class="gmail_quote">On 27 October 2010 13:30, Martijn Schrage <span dir="ltr">&lt;<a href="mailto:martijn@oblomov.com">martijn@oblomov.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On 21-10-10 01:01, Victor Nazarov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote></div>
This example creates a text field that turns red if it contains any non-digit characters. It is on-line at <a href="http://tryout.oblomov.com/ghcjs/ghcjs.html" target="_blank">http://tryout.oblomov.com/ghcjs/ghcjs.html</a>  (Note: I only tested it on Firefox on a Mac)<br>


<br>
All used files are in a zip file at <a href="http://tryout.oblomov.com/ghcjs/ghcjs.zip" target="_blank">http://tryout.oblomov.com/ghcjs/ghcjs.zip</a> (validate is in Test.hs, the JS monad in JS.hs, and the JavaScript for execHaskell in util.js)<br>


<br></blockquote><div><br></div><div>What browser are you using, IE8, IE9, FF and Chrome on Windows throw up errors, both locally and to your above code.</div><div> </div><div>Aaron</div><div><br></div></div>