[mochikit] Re: Combining two getXMLHttpRequests

2006-03-31 Thread Arnar Birgisson
2006/3/30, Thomas Hervé [EMAIL PROTECTED]: That's a good use-case for DeferredList. I've made a primary implementation here: http://trac.mochikit.com/changeset/548. To use it, simply get the 2 deferred from sendXMLHttpRequest, create a DeferredList with these 2 deferreds, and add your

[mochikit] Re: Help with passing information between deferred objects

2006-03-31 Thread Arnar Birgisson
Sorry guys.. forgot to include the list on my last two posts to Jorge - here's the most recent one. Arnar -- Forwarded message -- From: Arnar Birgisson [EMAIL PROTECTED] Date: 31.3.2006 16:20 Subject: Re: [mochikit] Help with passing information between deferred objects

[mochikit] Re: Missing one function function ...

2006-05-17 Thread Arnar Birgisson
On 5/17/06, Bob Ippolito [EMAIL PROTECTED] wrote: I don't think there's anything quite like this in MochiKit. Function composition is a classic feature of functional programming, I'm surprised it isn't already in MochiKit. :o) What are some use cases for this? What is construct typically

[mochikit] Re: Fwd: [mochikit] Re: Missing one function function ...

2006-05-18 Thread Arnar Birgisson
On 5/17/06, Julio Oña [EMAIL PROTECTED] wrote: Just pressed replay. I do that all the time too :o) I think in python it should be something like: Having defined: def fa(value): return . def fb(value): return def fc(value): return

[mochikit] Re: Missing one function function ...

2006-05-18 Thread Arnar Birgisson
On 5/18/06, Arnar Birgisson [EMAIL PROTECTED] wrote: Think of composition as a pipeline of functions: compose(f1, f2, ..., fN) returns a function that puts it argument backwards through the pipline, applying fN, then fN-1 to the result etc. Sorry, correction: it doesn't go backwards, it goes

[mochikit] Re: Missing one function function ...

2006-05-18 Thread Arnar Birgisson
On 5/18/06, Bob Ippolito [EMAIL PROTECTED] wrote: On 5/18/06, Arnar Birgisson [EMAIL PROTECTED] wrote: Think of composition as a pipeline of functions: compose(f1, f2, ..., fN) returns a function that puts it argument backwards through the pipline, applying fN, then fN-1 to the result etc

[mochikit] Re: onclick question

2006-05-21 Thread Arnar Birgisson
: Sun, 21 May 2006 19:55:17 + From: Arnar Birgisson [EMAIL PROTECTED] To: mochikit@googlegroups.com Subject: Re: [mochikit] onclick question In-Reply-To: [EMAIL PROTECTED] Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable References: [EMAIL PROTECTED] Hi

[mochikit] Re: Help with Example...

2006-05-25 Thread Arnar Birgisson
On 5/25/06, drbigfresh [EMAIL PROTECTED] wrote: I thought there was some way to pass it to the library via the html page So, I guess I would like to maintain the same functionality, but be able to specify the data source somewhere on the html page... Is that possible? Actually

[mochikit] Re: Fwd: [mochikit] storing info associated with a deferred

2006-05-26 Thread Arnar Birgisson
On 5/26/06, Julio Oña [EMAIL PROTECTED] wrote: sorry, fast replay. I do that too :o( -- Most other mailing-lists I'm on have reply-to header munging so pressing reply replies to the list - I know it's a controversial topic, but how do the list-owners feel about changing the setting? Just

[mochikit] Element position and borders

2006-06-02 Thread Arnar Birgisson
Hi there, Seems that getElementPosition differs between browsers if the element has borders. Haven't checked this thorough (don't have time until after the weekend) - but it seems IE, Safari and Opera return the coordinates inside the border, but Firefox at the outside. I.e. coordinates for an

[mochikit] Re: Sorting options inside a select

2006-06-09 Thread Arnar Birgisson
Hi On 6/9/06, Jorge Godoy [EMAIL PROTECTED] wrote: Is there something that I can use to sort the options inside a select accordingly to what is shown to the user? I'm getting a Python dict (unordered) in JSON format and I'd like to sort this to make options easier to find when browsing the

[mochikit] Re: new design of site is cool

2006-06-19 Thread Arnar Birgisson
Me too. :o) The site is clean and nice. There's one thing that bugs the h*ll out of me though. In the docs main page, which I have bookmarked, it takes a while for the script to build the table of contents (the expandable thingie). I click the bookmark, move my mouse over the chapter I need and

[mochikit] Re: Back, Forward best practice

2006-07-04 Thread Arnar Birgisson
On 7/4/06, elio [EMAIL PROTECTED] wrote: Hello Mochikiters, I'm making client server comunications with Mochikit async but I don't know how to manage with back and forward keys of the browser, may you suggest me any fine documentations ? Here's one, haven't tried this out myself though:

[mochikit] Re: [ANN] Public Beta of MochiKit-enabled IDE

2006-07-13 Thread Arnar Birgisson
On 7/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Download Aptana IDE from: http://www.aptana.com Send problems and issues to: [EMAIL PROTECTED] I downloaded the mac-installer. I'm behind a web proxy that requires authentication, so it couldn't download the subclipse plugin. Regarding

[mochikit] API reference in one file

2006-08-14 Thread Arnar Birgisson
Hi there, I constantly find myself looking up signatures of functions when writing mochikit-based javascript. The fact that each module is documented in a different page makes this a little cumbersome. With some DOM extraction, I took the API reference section of each module and dumped in a

[mochikit] Re: API reference in one file

2006-08-14 Thread Arnar Birgisson
On 8/14/06, Jorge Godoy [EMAIL PROTECTED] wrote: Arnar Birgisson [EMAIL PROTECTED] writes: There was no attachment... Even though it is readable at the web interface the mailing list strips them when sending emails. Yeah.. no, it was just me stripped of brain-activity. I forgot to attach

[mochikit] CSS selectors

2006-10-05 Thread Arnar Birgisson
Hi all, Many javascript libraries have convenience functions for selecting elements with the CSS selector syntax (like prototypes $$ I'm told). Has anyone implemented something like that with MochiKit? Preferably supporting CSS3 selectors? Would you consider such a function a valuable addition

[mochikit] Re: CSS selectors

2006-10-06 Thread Arnar Birgisson
On 10/5/06, Bob Ippolito [EMAIL PROTECTED] wrote: Yes absolutely. I've wanted to add CSS selector support for a long time, but I haven't had the opportunity to do it. There's even an open ticket on the issue. Hi all, I gave this a stab. I ported selector.js from prototype to MochiKit, in a

[mochikit] Re: CSS selectors

2006-10-06 Thread Arnar Birgisson
Hi again, sorry for reposting On 10/6/06, Arnar Birgisson [EMAIL PROTECTED] wrote: It supports sub-element selecting (like div#form input) but not other combinators (E F, E+ F, E~ F) - although I think they could be added. Turns out this was not too hard. Here's an updated version

[mochikit] Re: CSS selectors

2006-10-06 Thread Arnar Birgisson
On 10/6/06, Matt Goodall [EMAIL PROTECTED] wrote: My only real comment is on the packaging and naming. At the moment it's MochiKit.Selector.findChildElements(element, expressions). I think MochiKit.DOM.getElementsBySelector(expression, element=document) seems more in keeping with the rest of

[mochikit] Re: Please help me decide ideal implementation

2006-10-11 Thread Arnar Birgisson
On 10/11/06, Chris [EMAIL PROTECTED] wrote: While going through the MochiKit examples I realized I can use MochiKit.Async to, as they say, facilitate the 'half a second' live updating. So instead of doing a call (or paring down) on each keystroke just wait a 1/2 or 1/4 second. That might

[mochikit] Re: Announcing MochiKit.Animator - an animation engine that doesn't suck

2006-11-08 Thread Arnar Birgisson
Wow.. that is awesome.ArnarOn 11/7/06, Karl Guertin [EMAIL PROTECTED] wrote: var animation = cssAnimation(color:red; opacity: 0.5,$('example'));animation.play();Get it at: http://gr.ayre.st/~grayrest/animator/animator.html MochiKit.Animator is an enhanced, fully vectorized version of

[mochikit] Re: Can't post a comment on Trac

2006-11-10 Thread Arnar Birgisson
On 11/10/06, Bob Ippolito [EMAIL PROTECTED] wrote: It would make sense to post your problem here instead.Actually, there was no problem. I just wanted to post a comment on ticket #195 asking for the status of the CSS Selectors branch.. Arnar --~--~-~--~~~---~--~~

[mochikit] Re: [mochikit]

2006-11-10 Thread Arnar Birgisson
On 11/10/06, Bob Ippolito [EMAIL PROTECTED] wrote: this.selected = list( ifilterfalse( bind( function(itemid){ return itemid==item.id }, item ), this.selected ) ); Is there a prettier/better way to do it? this.selected = filter(function (itemid) { return itemid != item.id; },

[mochikit] Re: How do you wait for an asyncronous event?

2006-11-13 Thread Arnar Birgisson
Hi there, On 11/13/06, .M. [EMAIL PROTECTED] wrote: I've been reading the Mochikit docs for months but can't get my head around this construct. If there's any simpler doco on Deferred or a tutorial anywhere, please let me know. Check this out:

[mochikit] Re: Getting states of radiobuttons

2006-12-13 Thread Arnar Birgisson
Maybe not the best way, but this works for me: html head script type=text/javascript src=mochikit-svn/MochiKit/MochiKit.js/script /head body div id=radios input type=radio name=test value=1 /1br / input type=radio name=test value=2 /2br / input type=radio

[mochikit] Re: Getting states of radiobuttons

2006-12-14 Thread Arnar Birgisson
On 12/13/06, Arnar Birgisson [EMAIL PROTECTED] wrote: var selectedvalue = filter( itemgetter('checked'), $$('#radios input[name=test]) )[0].value; You end up with undefined if no radio is checked. Sorry, that is not correct. filter(...)[0] is undefined if no radio is checked

[mochikit] Re: Getting states of radiobuttons

2006-12-15 Thread Arnar Birgisson
On 12/14/06, Jorge Godoy [EMAIL PROTECTED] wrote: Arnar Birgisson [EMAIL PROTECTED] writes: On 12/13/06, Arnar Birgisson [EMAIL PROTECTED] wrote: var selectedvalue = filter( itemgetter('checked'), $$('#radios input[name=test]) )[0].value; You end up with undefined if no radio

[mochikit] MochiKit in OS-X Dashboard Widgets

2007-01-02 Thread Arnar Birgisson
Hi there, I was just trying out the new Dashboard widget ide from Apple [1]. I included MochiKit packed version and that seems to work fine, but loadJSONDoc is not working. Using XMLHttpRequests works very well, so I know that's not the problem here. Has anyone used MochiKit with Dashboard

[mochikit] Re: MochiKit in OS-X Dashboard Widgets

2007-01-03 Thread Arnar Birgisson
Thanks Theo, I figured out the problem and it was my own fault (relative urls where absolute were needed). This certainly OT, but I thought I might mention it if someone's interested, otherwise just ignore me: I have a small Python decorator that when applied to a method registers it as a web

[mochikit] Re: Passing an object to a Deferred callback?

2007-01-04 Thread Arnar Birgisson
On 1/4/07, jfagnani [EMAIL PROTECTED] wrote: One nice that about connect() though, is that the object will become this. It's a nice touch, I think. That's not exclusive to connect(), check out these: http://www.mochikit.com/doc/html/MochiKit/Base.html#fn-bind

[mochikit] MochiKit breaking Firefox

2007-01-10 Thread Arnar Birgisson
Hi folks, This simple example is not working in Firefox 2.0.1 for me: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta content=text/html; charset=UTF-8

[mochikit] Re: MochiKit breaking Firefox

2007-01-10 Thread Arnar Birgisson
On 1/10/07, troels knak-nielsen [EMAIL PROTECTED] wrote: FWIW, I tried with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 + MochiKit r.1247. I can't reproduce the problem. Ok, thank you Troels. I'll see if I can narrow down to some server problem

[mochikit] Re: MochiKit breaking Firefox

2007-01-11 Thread Arnar Birgisson
=text/javascript charset=utf-8/script This broke all following script.../script tags. What I forgot was to tell Genshi that I wanted xhtml output by passing 'xhtml' to the serialize() call. Once I added that it outputs script tags correctly and everything is fine. Arnar On 1/10/07, Arnar

[mochikit] Re: Drag and drop table rows with handle

2007-01-14 Thread Arnar Birgisson
On 1/13/07, chris feldmann [EMAIL PROTECTED] wrote: I actually ran into almost exatly this problem a few months ago, though I needed to drag cells, not rows. Still, I found it impossible to implement with tables. So how to make fixed columns in a list? style type=text/css .left, .middle,

[mochikit] Re: MochiKit and Firebug 1.0 Beta console.log'ging

2007-01-18 Thread Arnar Birgisson
I put this in util.js in all of my projects: if (window.console) { logger.useNativeConsole = false; // make the default logger log to firebug (log objects, not just strings) logger.addListener('firebug', null, function (msg) { var func = null; switch (msg.level) {

[mochikit] Re: Executing javascript in an AJAX page

2007-01-21 Thread Arnar Birgisson
Please provide us with an example - just the code that loads and the text that you're loading (processed html, not rhtml) and I'll be glad to try and help you out. Arnar On 1/21/07, Aragorn450 [EMAIL PROTECTED] wrote: That of course makes sense and I figured addLoadEvent itself won't work.

[mochikit] Re: problems centering a div using Coordinates and setElementPostion

2007-01-24 Thread Arnar Birgisson
On 1/24/07, Matthew Kwiecien [EMAIL PROTECTED] wrote: I didn't really look at your code, but here's the function I've been using to center an element: function centerElement(obj){ var vpDim = getViewportDimensions(); var elemDim = getElementDimensions(obj);

[mochikit] Re: Problem with toHTML punction in MochiKit.js

2007-01-25 Thread Arnar Birgisson
It seems that the variable e you are sending down to toHTML is null. Can you verify that? Arnar On 1/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello everyone :). I have a problem with toHTML function in MochiKit.js. I use the last version of this library MochiKit 1.3.1. The problem

[mochikit] Re: Problem with toHTML punction in MochiKit.js

2007-01-25 Thread Arnar Birgisson
FireBug may be running in a different document context than your code. In particular, the window.parent.document.getElementById(taxonomyURL) part is giving you a null value. Arnar On 1/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I tried alert(toHTML(e)); alert(e.innerHTML); in

[mochikit] Re: problems centering a div using Coordinates and setElementPostion

2007-01-25 Thread Arnar Birgisson
Hmm.. First off, shouldn't you be trying to center the div with id myModalHolder and not myModalDialog? Second, to position elements with left and top style attributes (which is what setElementPosition does) they need to have a position: absolute; css rule applied to them. hth, Arnar On

[mochikit] Re: Problem with toHTML punction in MochiKit.js

2007-01-25 Thread Arnar Birgisson
On 1/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Do You know the simplest way to debbug it ? Start by setting a breakpoint in FireBug on that line. When FireBug breaks you should be able to execute commands in the console which are executed in the correct context. From there you can

[mochikit] Re: Detecting when the browser has already drawn / rendered the HTML

2007-01-25 Thread Arnar Birgisson
On 1/25/07, Jorge Godoy [EMAIL PROTECTED] wrote: Sometimes I have problems with timing and the speed that IE takes to update an element with the dynamic information I've sent. In Firefox things work faster and it looks like that right after I created the DOM object and inserted it on the

[mochikit] Re: problems centering a div using Coordinates and setElementPostion

2007-01-25 Thread Arnar Birgisson
Yes, and one more thing :o) You should probably set padding to 0 on the back div to get rid of the scrollbars that get applied to the whole window. Arnar On 1/25/07, Matthew Kwiecien [EMAIL PROTECTED] wrote: In addition to that, you have your dialog nested inside the one you are setting

[mochikit] Combining Dimensions and Coordinates?

2007-01-25 Thread Arnar Birgisson
Hi all, I don't know if this has been discussed before, but here goes anyways. I was looking to implement some vector operations on the Coordinates prototype, such as add/subtract, multiply by factor. If these were to be used more in, say, code that generates SVG graphics and canvas stuff - I

[mochikit] Re: Combining Dimensions and Coordinates?

2007-01-26 Thread Arnar Birgisson
On 1/26/07, Beau Hartshorne [EMAIL PROTECTED] wrote: I'm open to this. We could call it Box. Check here for some thoughts on this: http://trac.mochikit.com/ticket/84 So a Box will define {t, r, b, l, w, h}. Thoughts? Ok, sounds good. Is there any way in js to enforce things like b-t=h and

[mochikit] Re: Combining Dimensions and Coordinates?

2007-01-26 Thread Arnar Birgisson
On 1/26/07, Beau Hartshorne [EMAIL PROTECTED] wrote: We can do the b-t = h calculations in the getSize method. So a {t,r,b,l} Box with a couple useful prototypes. I agree. Do Coordinates and Dimensions and Box belong in Base? Or is Style OK? And why don't we update the names, so Coordinates

[mochikit] Re: Convert more-dimensional associative object to an Array?

2007-01-26 Thread Arnar Birgisson
it, but it might be a bit more efficient especially if the table is very big. Arnar On 1/27/07, Arnar Birgisson [EMAIL PROTECTED] wrote: On 1/26/07, Johnny Blonde [EMAIL PROTECTED] wrote: Hello Arnar, maybe i need to explain it more detailed. var rData

[mochikit] Re: Convert more-dimensional associative object to an Array?

2007-01-26 Thread Arnar Birgisson
On 1/27/07, Tom W.M. [EMAIL PROTECTED] wrote: var dataArr = new Array(); forEach(rData, function(rRow) { dataArr.push(values(rRow)); }); Yes there is: var dataArr = map(values, rData); It's a bad idea to use either of these solutions, since JavaScript object properties are

[mochikit] Re: Mozilla 1.6 bug

2007-02-01 Thread Arnar Birgisson
Hi there, On 2/1/07, Jesper [EMAIL PROTECTED] wrote: I have used the following code var d = loadJSONDoc(someurl) d.addCallback(somecallbackfunction) without problems using MochiKit 1.3.1. When upgrading to the SVN version of MochiKit it suddenly stops working on Mozilla 1.6 (but keeps

[mochikit] Re: Combining Dimensions and Coordinates?

2007-02-02 Thread Arnar Birgisson
On 2/2/07, Beau Hartshorne [EMAIL PROTECTED] wrote: On 26-Jan-07, at 5:04 PM, Arnar Birgisson wrote: Why two different classes? Why not just use a point to represent size? That way, point could have useful prototype methods for some calculations. I don't know any definitions

[mochikit] Re: Combining Dimensions and Coordinates?

2007-02-03 Thread Arnar Birgisson
On 2/3/07, Bob Ippolito [EMAIL PROTECTED] wrote: Some good ideas for how to deal with points, sizes, rectangles, etc. are in Apple's AppKit (and CoreGraphics) APIs. They have an NSRect consisting of a NSSize and an NSPoint, which are different structures (though they happen to both be two

[mochikit] Re: Combining Dimensions and Coordinates?

2007-02-04 Thread Arnar Birgisson
On 2/4/07, Beau Hartshorne [EMAIL PROTECTED] wrote: On 3-Feb-07, at 7:20 AM, Arnar Birgisson wrote: Yes, I was thinking of something along those lines yesterday. I called it Box. I'm attaching a concept patch - that just adds the Box class and a few utility functions. Am I

[mochikit] Re: Combining Dimensions and Coordinates?

2007-02-04 Thread Arnar Birgisson
On 2/4/07, Beau Hartshorne [EMAIL PROTECTED] wrote: On 4-Feb-07, at 1:38 PM, Arnar Birgisson wrote: Ok, I'm fine with Rect. I did put in getDimensions and getCoordinates f - do you think that the Rect should have those two as attributes directly instead of t, l, h and w? Yes

[mochikit] Re: Mozilla 1.6 bug

2007-02-06 Thread Arnar Birgisson
On 2/6/07, Jesper [EMAIL PROTECTED] wrote: Hi Arnar, Sorry for the late reply. On Feb 1, 5:29 pm, Arnar Birgisson [EMAIL PROTECTED] wrote: Sorry I don't have Mozilla 1.6 available to test, but if you add an errback does that one get called? No, the errback is not called either (when I

[mochikit] Re: More function suggestions

2007-02-07 Thread Arnar Birgisson
Hi there, Those are all good additions imo. On 2/7/07, Chris Nokleberg [EMAIL PROTECTED] wrote: // reverse of itemgetter (perhaps there is a better name) getteritem: function (obj) { return function (arg) { return obj[arg]; } } Maybe propertygetter? When I started using

[mochikit] Re: Convert more-dimensional associative object to an Array?

2007-02-07 Thread Arnar Birgisson
There is already a patch for this in Trac: http://trac.mochikit.com/ticket/221 Arnar On 2/7/07, Bob Ippolito [EMAIL PROTECTED] wrote: We definitely won't be extending itemgetter to do two entirely different things based upon the argument passed. However, we could create a differently named

[mochikit] Re: Bugfixes in Selector, DOM

2007-02-07 Thread Arnar Birgisson
On 2/7/07, Aaron Faanes [EMAIL PROTECTED] wrote: Oops, I meant Format.strip, not trim. There's just a couple places where: expression.replace(/(^\s+|\s+$)/g, '') These are leftovers from the Prototype selectors, which MochiKit.Selector was initially ported from. This may actually be a

[mochikit] Re: Noob tries to put multiple sortable_tables on a single page

2007-02-09 Thread Arnar Birgisson
out just now. Arnar On 2/9/07, Arnar Birgisson [EMAIL PROTECTED] wrote: Hi Kael, I'ts no bother. I usually find this a good place to start: http://developer.mozilla.org/en/docs/JavaScript Aside to learning javascript, getting to know the DOM api is just as important. You can find links

[mochikit] Re: Two Quick Questions about sortable_tables examples....

2007-02-12 Thread Arnar Birgisson
Hi there Dr. Big Fresh (I assume that's not your real name), On 2/12/07, drbigfresh [EMAIL PROTECTED] wrote: I've been playing around with some of the examples, especially the sortable_tables example, and I can't figure a couple of things out: 1) If I include the sortable_tables.js file in

[mochikit] Re: [offtopic] Re: Browse the Web faster than Internet explorer and Its free

2007-02-13 Thread Arnar Birgisson
On 2/13/07, Jorge Godoy [EMAIL PROTECTED] wrote: troels knak-nielsen [EMAIL PROTECTED] writes: STOP THINKING Don't waste Time Now that's an add with some serious attitude! The most interesting part is that a lot of people already do that daily. Specially in front of TV... :-D Yeah,

[mochikit] Re: You mean JSON serialization ISN'T magic?

2007-02-14 Thread Arnar Birgisson
Hi Rush, On 2/14/07, Rush Manbert [EMAIL PROTECTED] wrote: This is OT, but I AM using MochiKit and you folks are such JavaScript hotshots that I thought I would ask here. For reasons very particular to my application, I have a JavaScript framework that defines 3 object types. Objects of

[mochikit] Re: What is the mochikit way ?

2007-02-19 Thread Arnar Birgisson
Hi there, There's nothing wrong with using setInterval and clearInterval with MochiKit I think. You can ues it together with partial if you want send some parameters to your function. I guess a different way to do this with MochiKit would be: function someRepeatingStuff(counter, interval) {

[mochikit] Re: getStyle(element, 'border-left') does not work

2007-02-19 Thread Arnar Birgisson
You might need 'border-left-width' since border-left is a shorthand rule. Arnar On 2/19/07, Létező [EMAIL PROTECTED] wrote: Hi! Margin and padding can be read by MochiKit.Style.getStyle, but it seems that border size cannot be read this way. Can anybody give me a workaround to read the

[mochikit] Re: Multiple windows

2007-02-19 Thread Arnar Birgisson
Hello, This is not directly related to MochiKit, but I think you can use something like parent.opener to refer to the parent window and call stuff defined there. This link might help: http://www.captain.at/howto-ajax-parent-opener-window-close-error.php As for the other thing, callLater might

[mochikit] Re: Future of MochiKit

2007-02-28 Thread Arnar Birgisson
Hi all, On 2/28/07, Bob Ippolito [EMAIL PROTECTED] wrote: none of the developers know and use all of the library anymore (e.g. I don't currently use anything in DragAndDrop, Sortable, or Visual) so it's harder to know what the overall status of everything is and it makes it harder for me to

[mochikit] Re: Selector Module

2007-03-02 Thread Arnar Birgisson
of Selector that shows performance problems? I'd be very interested in such cases since I have a feeling the tests I'm doing don't reflect real-world usage very well. Arnar On 3/2/07, Karl Guertin [EMAIL PROTECTED] wrote: On 2/28/07, Arnar Birgisson [EMAIL PROTECTED] wrote: I for one am ready

[mochikit] Re: does something work in IE?

2007-03-06 Thread Arnar Birgisson
On 3/6/07, Bob Ippolito [EMAIL PROTECTED] wrote: That has nothing to do with loadJSONDoc. It's your syntax. Try this: (new Date()).getTime() If that were needed there would be a bug in the js-implementation. The new operator has precedence over member access (the dot .) according to Ecma.

[mochikit] Re: DOM and firefox 2.0.0.2

2007-03-11 Thread Arnar Birgisson
Hi there, On 3/10/07, dvd [EMAIL PROTECTED] wrote: Firebug shows the replaced item, in the HTML three, greyed out. Generally that means it has css style display: none;. Do you have any styles applied? Check the style tab in Firebug's DOM explorer for computed/inherited styles. Arnar

[mochikit] Re: help needed desperately!

2007-03-16 Thread Arnar Birgisson
Hi, On 3/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: thanks man... but i am still not getting it the example you gave me has the actuall MochiKit example with drag_and Drop behavior... still I cant understand how i can call upon the functions of Mochikit... how can I say var mike

[mochikit] Re: rightclick in firefox

2007-03-19 Thread Arnar Birgisson
Hi Iain, On 3/19/07, iain duncan [EMAIL PROTECTED] wrote: Ok, I know I *should* be able to figure this out, but I'm confused. Anyone have an example of using connect to grab a rightclick event in firefox and suppress the firefox default? Does stopPropagation do this, and if so, how do I use

[mochikit] Re: Additional mouse events- docs tutorials?

2007-03-30 Thread Arnar Birgisson
Guess I forgot to reply to the list :o| Here's my reply for the archive. Arnar On 3/30/07, Arnar Birgisson [EMAIL PROTECTED] wrote: Hi there, On 3/30/07, voltron [EMAIL PROTECTED] wrote: I would like to implement a few mouse events in Mochikit which I use a lot in Actionscript

[mochikit] Bug in queryString?

2007-05-03 Thread Arnar Birgisson
Hi all, The current svn version of queryString gives me something unexpected on this queryString({nonni:null, x:3}) It gives me a silent error and no result. The docs say attributes with null values or undefined will be skipped, so I was expecting x=3 here. Further investigation shows that

[mochikit] Re: send JSON data from client to server

2007-05-04 Thread Arnar Birgisson
Hi Albert, On 5/4/07, Albert Nadal Garriga [EMAIL PROTECTED] wrote: I don't know if mochikit has specific functions to generate json data structures Of course it does :o) http://mochikit.com/doc/html/MochiKit/Base.html#fn-serializejson Arnar

[mochikit] Re: HTML does not render in TD

2007-05-04 Thread Arnar Birgisson
Hi there, On 5/4/07, Herb [EMAIL PROTECTED] wrote: I have seen recommendations to set the innerHTML after creating the cell and also read that MochiKit does not let you do this. I will also have to set some anchors in some cells, but I have not yet gotten that far. I'm not sure what you

[mochikit] jQuery and MochiKit

2007-05-07 Thread Arnar Birgisson
Hi all, Is anyone using jQuery with MochiKit? The jQuery folks say the only thing that could conflict with other libraries is the $ function, and they provide very nice facilities to solve that. I'd like to hear if someone is using these two together. My main worry is if using jQuery conflicts

[mochikit] gotapi.com and Mochikit

2007-06-06 Thread Arnar Birgisson
Hi all, I've written a script that takes the generated html docs and constructs an xml index file suitable for gotapi.com - which I find very handy. I've submitted the file to gotapi.com and it's under review by their staff right now. Should be added to their set if there are no problems with

[mochikit] Re: gotapi.com and Mochikit

2007-06-07 Thread Arnar Birgisson
Hi all, again. gotapi.com just informed me that MochiKit has been added to their collection. http://www.gotapi.com/ and http://start.gotapi.com/ I'm not affiliated with them in any way - but I recommend their resource. Arnar On 6/6/07, Arnar Birgisson [EMAIL PROTECTED] wrote: Hi all, I've

[mochikit] Re: Arabic Spam

2007-06-10 Thread Arnar Birgisson
On 6/9/07, Bob Ippolito [EMAIL PROTECTED] wrote: I've just changed the moderation settings to moderate all messages from new users. I'm not sure how much that's going to help though. I'll volunteer as a moderator if you like. I'm in timezone GMT+0 Arnar

[mochikit] Re: defferedlist, how to know the index of a particular deffered in the list

2007-06-15 Thread Arnar Birgisson
Hi there, On 6/15/07, Yves [EMAIL PROTECTED] wrote: I then use DeferredList() to create a list of all the Deferred objects and I add a callback. Now my problem is, how do I know from my callback function that the result comes from the seventh request I made, or the ninth, etc.? The

[mochikit] Re: onUpdate doesn't work for Sortable?

2007-06-25 Thread Arnar Birgisson
Hi Jason, On 6/25/07, Jason Bunting [EMAIL PROTECTED] wrote: Wow - either no one really knows how to help me or this list is even deader than I thought. Sorry, I was hoping someone else would pick up on this since I've never used Sortable myself. I did some tests though and figured out how

[mochikit] Re: onUpdate doesn't work for Sortable?

2007-06-27 Thread Arnar Birgisson
Hi there, On 6/27/07, KJ [EMAIL PROTECTED] wrote: Hi, I'm having problems with a call back, the following code doesn't seem to want to call the callback function. I'm hoping someone can help with this as the official scriptaculous documentation is pretty poor. Thanks

[mochikit] Re: Functions called by addLoadEvent can't access the DOM

2007-06-27 Thread Arnar Birgisson
On 6/27/07, Kieran O'Neill [EMAIL PROTECTED] wrote: Out of curiosity, though, how would one pass parameters to a function added using addLoadEvent? (besides using globals) With partial: addLoadEvent(partial(alert, Hi mom)); partial(f, param1, ..., paramN) will give you a new function g, so

[mochikit] Re: Generator vs Deferred

2007-06-27 Thread Arnar Birgisson
On 6/27/07, Giulio Cesare Solaroli [EMAIL PROTECTED] wrote: a colleague has just pointed me to this post on Javascript threading: http://www.neilmix.com/2007/02/07/threading-in-javascript-17/ Interesting, kinda like Stackless Python but for javascript :) I have to admit that I did not read

[mochikit] Re: Generator vs Deferred

2007-06-28 Thread Arnar Birgisson
Hi Giulio, On 6/28/07, Giulio Cesare Solaroli [EMAIL PROTECTED] wrote: I was hoping I could avoid the extra effort of warping my mind around another challenging paradigm, but I was hoping wrong. :-) Well.. unless you have specific need for this kinda thing (pseudo-threading in javascript),

[mochikit] Re: Documentation and zip function

2007-06-29 Thread Arnar Birgisson
On 6/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think the information about the zip function is missing in the documentation, it talks about izip but don´t cover zip function. Thanks, should be fixed now. Arnar --~--~-~--~~~---~--~~ You received this

[mochikit] Re: Async status success return codes question

2007-07-06 Thread Arnar Birgisson
On 7/6/07, Karen [EMAIL PROTECTED] wrote: It means it's not RFC-compliant out of the box. I'm not saying that's a bad thing overall (the other 99% of the time, you don't want overhead for bits that almost no one uses), I'm just saying it's a bad fit for me. Three lines of code for this fix

[mochikit] Re: Can't get 'this' to point to the right object

2007-07-09 Thread Arnar Birgisson
Post us an example please.. Arnar On 7/9/07, TiNo [EMAIL PROTECTED] wrote: Sorry, you told me this before. I have the svn version from a month ago or so. Even without using the connectcall (just istantiating in the same .js file) it goes wrong 2007/7/9, Bob Ippolito [EMAIL PROTECTED]:

[mochikit] Re: Roll Your Own

2007-07-20 Thread Arnar Birgisson
Hi Ross, Excellent tip, thanks. Would you add it to the wiki? http://trac.mochikit.com/ Arnar On 7/20/07, Ross Mohn [EMAIL PROTECTED] wrote: A quick thanks for the excellent MochiKit! I like to write small, efficient code and MochiKit has helped me in that effort. I only needed a bit of JS

[mochikit] Re: Help on connecting event

2007-07-22 Thread Arnar Birgisson
On 7/22/07, Alberto Simões [EMAIL PROTECTED] wrote: Hi I am constructing a DIV divobj = DIV(...); now I want to connect an event connect(divobj, onclick,openWindow); but I want to give a special argument to openWindow. How can I do this in an easy way? connect(divobj, onclick,

[mochikit] Re: Help on connecting event

2007-07-22 Thread Arnar Birgisson
On 7/22/07, Alberto Simões [EMAIL PROTECTED] wrote: Hmms.. nice.. currying :D Thanks Alberto No problem. If you like functional programming, have a look over the docs for the Base and Iter modules. Arnar --~--~-~--~~~---~--~~ You received this message because

[mochikit] Re: howto get the euro; sign in a new dom node?

2007-08-01 Thread Arnar Birgisson
Hello Sander, On 8/1/07, SanderElias [EMAIL PROTECTED] wrote: I needed to insert an euro sign in a newly created dome node, and it backfired on me. I think I must miss something! I tried this: var newDiv = DIV(null,euro; 11,-) document.appendChild(newDiv) You will have to use the unicode

[mochikit] Re: howto get the euro; sign in a new dom node?

2007-08-01 Thread Arnar Birgisson
On 8/1/07, SanderElias [EMAIL PROTECTED] wrote: You will have to use the unicode escape sequence, like this: var newDiv = DIV(null,\u20ac 11,-) document.appendChild(newDiv) Aha! well, it looks like I need to finds a unicode escape table! For this particular case I just googled for euro

[mochikit] Re: callLater and IE

2007-08-21 Thread Arnar Birgisson
On 8/21/07, Bob Ippolito [EMAIL PROTECTED] wrote: Some of these built-in methods and functions aren't actual JavaScript functions and aren't compatible with Function.prototype.apply, so using MochiKit directly on them may not work. I think there's a workaround for it in MochiKIt that makes it

[mochikit] Re: callLater and IE

2007-08-21 Thread Arnar Birgisson
On 8/21/07, Jonathan Marshall [EMAIL PROTECTED] wrote: Changing that to: if (typeof(func) == object typeof( func.apply) == undefined) { works for me. Good. Would you be able to add some tests using your examples and submit them as well as the fix as a patch? Then we can test it on the

[mochikit] Re: Question About showElement()

2007-08-29 Thread Arnar Birgisson
Hi there, On 8/29/07, machineghost [EMAIL PROTECTED] wrote: The Mochikit Style function showElement works as follows: codethis.showElement = m.partial(this.setDisplayForElement, 'block');/code In other words, it sets the display style of the element to block. I suspect the reason it does

[mochikit] Re: Question About showElement()

2007-08-30 Thread Arnar Birgisson
Hi, On 8/30/07, machineghost [EMAIL PROTECTED] wrote: In my specific case, I can add my own stylesheet, but my code will be used on pages with other stylsheets that I can't control. If I define a nodisplay class as .nodisplay{display:none}, and any of those stylesheets contains a display

[mochikit] Re: Activity

2007-10-06 Thread Arnar Birgisson
On 10/3/07, scipio [EMAIL PROTECTED] wrote: How hard can it be to tag the repository and update a couple lines of text on a web page? Do you need any specific functionality that isn't in place in MochiKit? At least for me, MK is doing what I need it to do, and as long as there are bugfixes

[mochikit] Re: 1.4, again

2007-10-16 Thread Arnar Birgisson
On 10/16/07, troels knak-nielsen [EMAIL PROTECTED] wrote: It's bordering on arrogant to assume that people who want to use MochiKit must be geeky enough to use SVN. Most javascripters aren't. I find it no less arrogant to demand that other people devote alot of their time in maintaining free

[mochikit] Re: 1.4, again

2007-10-17 Thread Arnar Birgisson
On 10/17/07, Jonathan Ellis [EMAIL PROTECTED] wrote: On Oct 16, 3:20 pm, Arnar Birgisson [EMAIL PROTECTED] wrote: Most people are in one of two situations: 1. Already using MK. If it's working and you're happy with it, why do you need a release? If it is not, a release won't help much

  1   2   >