See the popup in the bottom-right corner for the timer's code. Other
than the built-in timer UI and the showTime function, it is a generic
REPL. You can use it to play around with arbitrary expressions. So,
I've posted a version without the timer UI:
1. You can break the REPL. It is not bulletproof. I've made an
attempt to isolate the REPL's code from the user's code. But, it's
still a hack that uses eval.
2. It doesn't work on IE at the moment. (Suggestions/patches
welcome.) I've tested it on Firefox and Safari.
Does the timer demo work in Windows FF3.0.15? It doesn't do anything, just
shows an empty progress bar, a button and the solution in the lower corner.
Nothing happens when click is pressed. I cannot enter any text in the
solution window where the code is either.
The repl demo shows a blank page the body is empty.
> See the popup in the bottom-right corner for the timer's code. Other
> than the built-in timer UI and the showTime function, it is a generic
> REPL. You can use it to play around with arbitrary expressions. So,
> I've posted a version without the timer UI:
> 1. You can break the REPL. It is not bulletproof. I've made an
> attempt to isolate the REPL's code from the user's code. But, it's
> still a hack that uses eval.
> 2. It doesn't work on IE at the moment. (Suggestions/patches
> welcome.) I've tested it on Firefox and Safari.
At first it doesn't work on my Linux Firefox 3.5 either, but after I
opened Firebug's console (and clicked here and there) I was able to
input...weird.
On Tue, Nov 3, 2009 at 2:29 PM, Fred Janon <fja...@gmail.com> wrote:
> Does the timer demo work in Windows FF3.0.15? It doesn't do anything, just
> shows an empty progress bar, a button and the solution in the lower corner.
> Nothing happens when click is pressed. I cannot enter any text in the
> solution window where the code is either.
> The repl demo shows a blank page the body is empty.
> Fred
> On Tue, Nov 3, 2009 at 02:12, Arjun Guha <arjun.g...@gmail.com> wrote:
>> Last week at OOPSLA, we live-coded a timer in Flapjax, using a custom
>> REPL. I've added this REPL to the demos on the Flapjax website:
>> See the popup in the bottom-right corner for the timer's code. Other
>> than the built-in timer UI and the showTime function, it is a generic
>> REPL. You can use it to play around with arbitrary expressions. So,
>> I've posted a version without the timer UI:
>> 1. You can break the REPL. It is not bulletproof. I've made an
>> attempt to isolate the REPL's code from the user's code. But, it's
>> still a hack that uses eval.
>> 2. It doesn't work on IE at the moment. (Suggestions/patches
>> welcome.) I've tested it on Firefox and Safari.
> At first it doesn't work on my Linux Firefox 3.5 either, but after I > opened Firebug's console (and clicked here and there) I was able to > input...weird.
This is weird. I'm careful to test with a version of Firefox that does not have Firebug installed. I am working on a Mac, but that's unlikely to be the issue.
(I just made a small change for Firefox: the empty prompt had zero height--that is no longer the case.)
> Does the timer demo work in Windows FF3.0.15? It doesn't do > anything, just shows an empty progress bar, a button and the > solution in the lower corner. Nothing happens when click is pressed. > I cannot enter any text in the solution window where the code is > either.
> The repl demo shows a blank page the body is empty.
I fixed this (tested on FF3.0.12 on a Mac).
I made some changes to Flapjax's DOM manipulation code that used Element.children, which is only supported by IE8/Safari4/FF3.5. I've reverted to using Element.childNodes, which works on older browsers.
In the future, I'll use older browsers while testing.
On Tue, Nov 3, 2009 at 21:50, Arjun Guha <arjun.g...@gmail.com> wrote:
> > Does the timer demo work in Windows FF3.0.15? It doesn't do
> > anything, just shows an empty progress bar, a button and the
> > solution in the lower corner. Nothing happens when click is pressed.
> > I cannot enter any text in the solution window where the code is
> > either.
> > The repl demo shows a blank page the body is empty.
> I fixed this (tested on FF3.0.12 on a Mac).
> I made some changes to Flapjax's DOM manipulation code that used
> Element.children, which is only supported by IE8/Safari4/FF3.5. I've
> reverted to using Element.childNodes, which works on older browsers.
> In the future, I'll use older browsers while testing.
Here is a screen shot on Windows FF 3.0.14. There is no area to input
anything. The box with the solution is there though (not on the screen shot.
I had no idea what it was supposed to do until I saw your screenshot.
I just installed Firefox 3.0.15 on Windows XP. It's my first
installation, so no addons.
Both the timer and standalone REPL work fine. I doubt it's an issue
with a minor point release. (I can't seem to get Firefox 3.0.14 from mozilla.org . I'm not getting it from 3rd-party sources since I don't run a virus
checker.)
I think the next step in debugging this is to give me the output from
your error console. Specifically:
> Here is a screen shot on Windows FF 3.0.14. There is no area to
> input anything. The box with the solution is there though (not on
> the screen shot. I had no idea what it was supposed to do until I
> saw your screenshot.
> Fred
> On Tue, Nov 3, 2009 at 22:36, Arjun Guha <arjun.g...@gmail.com> wrote:
> > REPL works now on Windows FF 3.0.14. timer still doesn't do
> anything.
> > Fred
> Could you be more specific? Here's what it's supposed to look like,
> after you've typed in the solution:
On Fri, Nov 6, 2009 at 05:30, Arjun Guha <arjun.g...@gmail.com> wrote:
> I just installed Firefox 3.0.15 on Windows XP. It's my first
> installation, so no addons.
> Both the timer and standalone REPL work fine. I doubt it's an issue
> with a minor point release. (I can't seem to get Firefox 3.0.14 from
> mozilla.org
> . I'm not getting it from 3rd-party sources since I don't run a virus
> checker.)
> I think the next step in debugging this is to give me the output from
> your error console. Specifically:
> I can't figure out how to get FF 3.0.14
> On Nov 3, 2009, at 11:21 , Fred Janon wrote:
> > Here is a screen shot on Windows FF 3.0.14. There is no area to
> > input anything. The box with the solution is there though (not on
> > the screen shot. I had no idea what it was supposed to do until I
> > saw your screenshot.
> > Fred
> > On Tue, Nov 3, 2009 at 22:36, Arjun Guha <arjun.g...@gmail.com> wrote:
> > > REPL works now on Windows FF 3.0.14. timer still doesn't do
> > anything.
> > > Fred
> > Could you be more specific? Here's what it's supposed to look like,
> > after you've typed in the solution: