PDA

View Full Version : mootools bridge



fabrizim
8 Mar 2007, 1:00 PM
Hi all-

First off, Ext is great - thanks for all the hard work Jack!

I've been writing components for Joomla, and I would like to use the Ext library in some of my newer stuff. It seems that Joomla has adopted mootools, in such a way that it is included on every page the CMS renders. This has its pros and cons that I won't get into for the sake of brevity. Anyways, on to my question...

Before I go ahead and write/test a mootools bridge, it should be as easy as writing the Ext.lib functions in the same fashion as the jquery-bridge.js or prototype-bridge.js, and including that after mootools and before before Ext, correct? Please let me know if there are any caveats that I would need to know about prior to coding.

Thanks again-

Mark

jack.slocum
10 Mar 2007, 6:54 AM
You are welcome to hack at it. I will probably be making one as well eventually.

fabrizim
19 Mar 2007, 12:18 PM
I attempted writing this bridge but am stuck on a few things.

http://www.joomlicious.com/ext-mootools-adapter/

Its a start anyway :)

Please let me know if anyone tests it, fixes it, etc.

aconran
20 Mar 2007, 8:34 PM
Very Cool!

You should check out this older thread http://www.yui-ext.com/forum/viewtopic.php?t=2458&postdays=0&postorder=asc&start=15

When people initially were talking about porting some of the Ext framework to mootools. I'm sure they'd love to hear about your success and possibly you could find some collaborators.

Aaron

jack.slocum
21 Mar 2007, 12:53 AM
Looks good - what are you stuck on? Were you able to leverage the prototype bridge? I imagine they would be very similar.

fabrizim
21 Mar 2007, 4:15 AM
http://www.joomlicious.com/ext-mootools-adapter/

I updated the page with some of the problems I've encounted (mostly with IE, who woulda thunk it.)

Thanks!

Mark

jack.slocum
21 Mar 2007, 5:43 AM
3. Not sure about that one!

4. I think that's a bug in all adapters. Not sure why but I have seen it as well.

5. In examples.js it configures Ext.BLANK_IMAGE_URL to point to that url. In the next rev that path will be relative.

Any chance you have uncompressed source somewhere that I can take a look at?

fabrizim
21 Mar 2007, 5:50 AM
Thanks for the quick feedback. I'll update my page with your comments.

If you download the zip file from my page, the uncompressed code is in mootools-bridge.js.

jack.slocum
21 Mar 2007, 5:53 AM
Ah sorry, I am an . :)

brian.moeskau
21 Mar 2007, 5:58 AM
Your example page seems to be DOA in Safari. Just FYI.

fabrizim
21 Mar 2007, 6:05 AM
@jack - I doubt that very much :)

@bmoeskau - I'm macless - so I can't really test - it seems to work on most of my Windows browsers (FF,IE,Opera)

Should I be testing in IE6? - Does Ext support IE6?

BTW - found another strange problem and listed it on the page - not sure if its in the adapter or not.

brian.moeskau
21 Mar 2007, 6:06 AM
Ext supports IE6 and Safari :)

brian.moeskau
21 Mar 2007, 6:09 AM
Actually, I went back to your page to try and see what the problem was and it's working now :shock:. I guess something did not get loaded properly the first time I went there. Have not tried every example, but the first few loaded correctly! Sorry about that.

kitepad
21 Mar 2007, 7:51 PM
From my test, for Ext.BasicDialog, only depend on core and native parts of mootools.
I will continue test other ext's example to find out minimized requirements of mootools.

kitepad
21 Mar 2007, 8:25 PM
If you need use Ajax to load server resources and dialog resize, you must add ajax and window module.

If you have json support, you must add json module.

sleets
1 Apr 2007, 6:10 PM
mootools is very nice.

rsuplido
11 May 2007, 5:15 AM
Any recent progress on the bridge? Thanks.

cobnet
14 May 2007, 7:10 PM
Mootools is showing memory leaks in Firefox, unless they fix these I would not even consider this option. Jack has been excellent in fixing these anoying little bugs and I think Mootools needs to as well. If you want to be open source fix all possible problems, including memory leaks.

Just my thoughts, keep up the good work. I kinda see Joomla, Modx and Extjs working the same general direction, but these other options have got to keep up to Jack's excellent standards.

Just my input,
Mark

EDIT: WOW! What a difference a day makes, I just went to their demos page and not a single memory leak! I could have sworn a day or so ago, I had a pop leak on each demo. Consider this posting in error at the moment, SORRY!
Mark

J.C. Bize
15 May 2007, 2:57 AM
They just barely released Mootools v1.1, which is a big improvement over release 1.0. It's really quite a bit faster!

It's been a couple of months since there have been any updates on mootools integration... Is anyone aware of any progress?

murphy
16 May 2007, 5:12 AM
I want too see this complete also for mootools 1.1 ;) Would be very cool...

Cheers murphy

trbs
16 May 2007, 5:54 PM
firebug tells me that the demo pages are using yui not mootools...
am i missing something here ?

eg:
http://www.joomlicious.com/ext-mootools-adapter/ext-1.0-alpha3rev4/ext-1.0-alpha3/examples/dialog/hello.html
seems to be having ext-yui-adapter.js and yui-utilities.js script tags.

mindreframer
17 May 2007, 5:21 AM
trbs, this file is only called yui-utils, it's moo-tools. Just look at the source.
//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006 Valerio Proietti, <http://mad4milk.net>, MIT Style License.

But the development seems to have stopped, or am I wrong :-/

trbs
17 May 2007, 6:23 PM
trbs, this file is only called yui-utils, it's moo-tools. Just look at the source.
//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006 Valerio Proietti, <http://mad4milk.net>, MIT Style License.

But the development seems to have stopped, or am I wrong :-/

Aha. i missed something :)

maybenotmay
24 May 2007, 9:54 PM
please pardon a newbie with a puzzling question. i was going to start a new thread, but since we're talking about frameworks, i thought this might be an okay place to pop the question.

if i understand correctly, ext can be thought of as a layer that lies on top of another framework ... it could be yui, jquery, and in this case, mootools. so i guess my questions are:

a) would ext code be compatible with the yui/jquery/mootools code? or is this a non-issue, because if i were using ext, then i would have no need to access the rest of the framework? (ie. ext neatly covers more or less everything i'd ever want to do with the other frameworks)

b) i'm currently trying to learn yui right now (i would LOVE to learn mootools if the tutorials were a bit more ... helpful) ... and the download of ext includes yui-adapter and yui-utilities, but i know the yui download is much more than that. do the yui-adapter and yui-utilities represent what ext needs from the yui framework? in the same light, would it apply to the mootools bridge?

c) in any case then, what would be the factors i should consider choosing between yui, jquery and mootools?

thank you in advance for your time

alwaysvip
7 Oct 2007, 11:48 PM
As Mootools 1.2 is right around the corner, Ext could really use a Mootools adapter. I used to use Scriptaculous and Prototype, but Mootools really blows these other frameworks away. Is anyone making any progress on a Mootools adapter? I downloaded the new Ext 2.0 alpha, but unfortunately there is no support for Mootools :(

brian.moeskau
8 Oct 2007, 12:08 AM
I don't think anyone is actively working on one at this point, but if someone who knows MooTools is willing to write it, we'd be happy to include it.

alwaysvip
8 Oct 2007, 2:33 PM
I don't think anyone is actively working on one at this point, but if someone who knows MooTools is willing to write it, we'd be happy to include it.

I know Mootools, but I don't know anything about Ext. How much time do you think it would take me to write it?

JeffHowden
8 Oct 2007, 4:09 PM
I know Mootools, but I don't know anything about Ext. How much time do you think it would take me to write it?
Well, you've got 3 adapters (yui, prototype/scriptaculous, and jquery) to use as a guide. So, after looking those three over, you should be able to get a pretty good idea of what it'll take.

farracha
18 May 2009, 9:25 AM
Hi,

Just to bring this topic to the top.

Is there any developments about this adapter. It would be great, since I need to use one feature from mootools.

Cheers