[mochikit] connect to keyboard events not working in FireFox?

2010-02-05 Thread SimonS
Hi, The following works for me in IE, Chrome and Safari, but fails in FireFox 3.6 (running on Vistax64). The 'key down' event just doesn't seem to get received: = html head script type='text/javascript' src='MochiKit.js'/script script

[mochikit] Re: connect to keyboard events not working in FireFox?

2010-02-05 Thread SimonS
it knows this Div or Span is keyboard selectable. That allows the keyboard event to be triggered. Perhaps that does the trick? Cheers, /Per - without the testing time right now On Fri, Feb 5, 2010 at 08:34, SimonS ssade...@gmail.com wrote: Hi, The following works for me in IE

[mochikit] Re: deferred callbacks that throw errors

2008-01-24 Thread SimonS
Is there a simple way to abort the callback chain from one of the callbacks? It continues calling the success chain because the errback doesn't return an error or raise an exception. Thanks - I tried throwing an exception from the errback as you suggest and it does what I want (stops

[mochikit] deferred callbacks that throw errors

2008-01-23 Thread SimonS
Hi, I'm curious about the effect of the following code: var d = new Deferred(); d.addCallback(function() { alert('f'); throw new GenericError('foo'); }); d.addErrback(function() { alert('e'); }); d.addCallback(function() { alert('s'); }); d.callback('success'); The result I observe