[mochikit] Re: MochiKit 1.4 released

2008-10-21 Thread csnyder
On Tue, Oct 21, 2008 at 6:32 AM, Per Cederberg [EMAIL PROTECTED] wrote: MochiKit 1.4 has now been released and is available on the web site. Congrats, and thanks for all of your hard work putting the release together! It has been a real pleasure to use such a stable codebase in our projects,

[mochikit] Re: Formatting strings, numbers and stuff

2008-09-12 Thread csnyder
On Wed, Sep 10, 2008 at 3:53 PM, Per Cederberg [EMAIL PROTECTED] wrote: Suggested formatting types: s - Output from toString(), this is the default r - Output from MochiKit.Base.repr() b - Binary. Outputs the number in base 2. c - Character. d - Decimal Integer. Outputs the number in base

[mochikit] Re: Formatting strings, numbers and stuff

2008-09-12 Thread csnyder
On Fri, Sep 12, 2008 at 1:26 PM, Bob Ippolito [EMAIL PROTECTED] wrote: d is for integers, f is for fixed point. 1 mochifmt:f(${0:.2f}, [1.234]). $1.23 Love it. Though I finally RTFM'd and found twoDigitFloat(), so this particular case already sucks less.

[mochikit] Re: Random Ideas for Mochikit.DOM

2008-08-20 Thread csnyder
On Tue, Aug 19, 2008 at 1:26 PM, Jason Bunting [EMAIL PROTECTED] wrote: I think using aliases is nice, but your particular pattern of using MochiKit may not be the same as others, so I don't see a reason to change things. That's exactly right. I prefer ge = getElementsByTagAndClassName; but

[mochikit] Re: Get text under the mouse pointer via javascript

2008-07-09 Thread csnyder
The New York Times does this. Pick any story at http://nytimes.com/ and double-click a word. It turns out that it's kind of annoying, actually, because it is unexpected behavior. But that obviously varies case-by-case. By the way, you shouldn't connect every span to an event. Just connect the

[mochikit] Reasons to not use a simple ondomload signal?

2008-05-08 Thread csnyder
Hi MochiKitters, I've been using the following trick successfully for a few months now. It _seems_ to work fine cross-browser and cross platform. script type=text/javascript signal(window,'ondomload'); /script /body /html But based on the recent thread about implementing ondomload, I assume

[mochikit] Re: signals, onload, maybe too late?

2007-08-14 Thread csnyder
On 8/14/07, Gábor Farkas [EMAIL PROTECTED] wrote: hi, when using the mochikit-signal-framework, i usually connect the signals i use in the window.onload event. but i'm slightly worried that it might happen, that an user clicks on something before the onload-event is fired, and in that

[mochikit]

2006-11-10 Thread csnyder
Greetings fellow MochiKitters! I often find myself having to remove one or two values from a list, and I cringe a little when I write code in the following pattern: this.selected = list( ifilterfalse( bind( function(itemid){ return itemid==item.id }, item ), this.selected ) ); Is there a