<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 29-10-10 22:20, Aaron Gray wrote:
<blockquote
cite="mid:AANLkTikJ+UMGJL=5JmdffVGCU8FEy5MEFc2wG-6auoLi@mail.gmail.com"
type="cite">
<div class="gmail_quote">On 27 October 2010 13:30, Martijn Schrage
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:martijn@oblomov.com">martijn@oblomov.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div class="im">On 21-10-10 01:01, Victor Nazarov wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
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
moz-do-not-send="true"
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 moz-do-not-send="true"
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>
</blockquote>
That's weird, since <a moz-do-not-send="true"
href="http://tryout.oblomov.com/ghcjs/ghcjs.html" target="_blank">http://tryout.oblomov.com/ghcjs/ghcjs.html</a>
works fine for me with Firefox both on Mac and Windows (XP & 7).
There is only a small bug that causes a key event to get lost when
the Haskell JavaScript modules are loaded.<br>
<br>
What error messages do you get from Firefox?<br>
<br>
-- Martijn<br>
</body>
</html>