[mochikit] Re: MK vs Dojo vs YUI vs ?

2006-06-29 Thread Bob Ippolito
On Jun 28, 2006, at 9:41 PM, Damjan wrote: It does have some nice features. I'd like to see all the CSS-selector emulation in MochiKit, but adding properties to or proxying DOM objects is not something I want MochiKit to do. Yes, that's the single greatest feature of jQuery, the CSS and

[mochikit] Re: MK vs Dojo vs YUI vs ?

2006-06-29 Thread Damjan
I've also found this, var items = document.evaluate(/rss/channel/item, res.responseXML, null, XPathResult.ANY_TYPE, null); items is an iterator so you iterate it like this: while (item = items.iterateNext()) { blah; blah; item;} But I think this is a Mozilla only feature.

[mochikit] Re: MK vs Dojo vs YUI vs ?

2006-06-29 Thread Bob Ippolito
On Jun 29, 2006, at 1:08 AM, Damjan wrote: I've also found this, var items = document.evaluate(/rss/channel/item, res.responseXML, null, XPathResult.ANY_TYPE, null); items is an iterator so you iterate it like this: while (item = items.iterateNext()) { blah; blah; item;} But I think

[mochikit] Newbie questions

2006-06-29 Thread Nicolas
Hi, I'm trying to use the SVN trunk version of MochiKit, but I'm a bit lost, because there is a full documentation of the various objects, but unless I missed it, there is no general overview on the packaging system, on what should be included in HTML pages, on how to solve the dependencies and

[mochikit] MochiKit tree

2006-06-29 Thread Damjan
http://legolas.on.net.mk/ajax-tree/mochi-dynamic.html My first take of a dynamic, json powered, expandable tree. What do you say? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this

[mochikit] Re: Plain MochiKit with Dojo

2006-06-29 Thread [EMAIL PROTECTED]
This doesn't work either. Does anybody have any success getting MochiKit and Dojo to play together at all? I can't include them in EITHER order. Dojo can't seem to import Mochikit successfully and including MochiKit before Dojo breaks Dojo. The documentation says this works... HELP!

[mochikit] Question on key()

2006-06-29 Thread Jason Bunting
I am still trying to wrap my head around how things work in MochiKit, and after spending 20 minutes banging my head against the wall, humbly seek some assistance. I want to check all keys pressed, so I attach to that event like this: connect(window.document, onkeyup, HandleOnKeyUp);

[mochikit] Re: Question on key()

2006-06-29 Thread Bob Ippolito
On Jun 29, 2006, at 2:23 PM, Jason Bunting wrote:I am still trying to wrap my head around how things work in MochiKit, and after spending 20 minutes banging my head against the wall, humbly seek some assistance. I want to check all keys pressed, so I attach to that event like this: 

[mochikit] Re: Preventing form-submit by accident

2006-06-29 Thread Jorge Godoy
Peter Mularien [EMAIL PROTECTED] writes: I've done something very similar to this (capturing Enter keypresses). The things you have to be careful of - (1) pressing enter to submit a form is very standard browser behavior - so if you change it you will be (potentially) disrupting your users,

[mochikit] Re: Preventing form-submit by accident

2006-06-29 Thread Jorge Godoy
Roger Demetrescu [EMAIL PROTECTED] writes: Hi Godoy ! :) I usually use a container which intercepts Enter key press.: form action=foobar span onkeydown=if (event.keyCode == 13){return false;} input type=text name=value1 / input type=text name=value2 /

[mochikit] How to pass something into a callback function?

2006-06-29 Thread Scott Chapman
function showPointDetails() { // This function needs the overlay from showMapPointInfo() // but it's a callback function. // How to get the overlay in here at the time of the callback? // I want to attach an openInfoWindowHTML to it // Fetch goodies regarding the

[mochikit] Re: How to pass something into a callback function?

2006-06-29 Thread Jorge Godoy
Scott Chapman [EMAIL PROTECTED] writes: //myPoints.addCallbacks(showPointDetails,pointsFetchFailed); myPoints.addCallback(showPointDetails, something); myPoints.addErrback(pointsFetchFailed); And you'll get 'something' as the first value in myPoints. -- Jorge Godoy [EMAIL

[mochikit] Re: How to pass something into a callback function?

2006-06-29 Thread Bob Ippolito
In order to add additional parameters to the callbacks, you need to use addCallback and addErrback separately, or create a closure yourself (e.g. via partial or defining showPointDetails within the showMapPointInfo function). You want something like myPoints.addCallback(showPointDetails,

[mochikit] Re: How to pass something into a callback function?

2006-06-29 Thread Bob Ippolito
On Jun 29, 2006, at 3:25 PM, Bob Ippolito wrote: In order to add additional parameters to the callbacks, you need to use addCallback and addErrback separately, or create a closure yourself (e.g. via partial or defining showPointDetails within the showMapPointInfo function). You want

[mochikit] Re: How to pass something into a callback function?

2006-06-29 Thread Scott Chapman
It's working! Man this AJAX/Google Map stuff is COOL! Thanks all! Scott Bob Ippolito wrote: On Jun 29, 2006, at 3:25 PM, Bob Ippolito wrote: In order to add additional parameters to the callbacks, you need to use addCallback and addErrback separately, or create a closure yourself (e.g.