Yahoo User interface yui and e107

e107 CMS » Forums » Miscellaneous » e107 Comments << Previous thread | Next thread >>
G4HDU
Sep 02 2010, 02:51AM
Registered Member #1920
Joined: Jun 09 2003, 03:48AM
Location: North West UK
Posts: 1395
Has anybody integrated the Yahoo YUI [-link-] into e107? In particular I was looking at yui 2 as this currently has the greatest number of tools that I want to integrate with some of my plugins (eg the tree control and tab control)

I'd be interested in any feedback people have of their experience with it in general or with e107 in particular.
Go to top
Website
aSeptik
Sep 09 2010, 06:34PM
Registered Member #22526
Joined: Nov 22 2005, 11:02AM
Location: Italy
Posts: 341
hi Barry!

i guess the yui lib should work in e107 like a charm, as every js lib around there!

i have used it, not all the widget they provide, of course, i can say that is very powerfull but it loose in readability and time to write code! i'm personally a fan of jQuery where, for example, a normal click event require in


//YUI 2 :

YAHOO.util.Event.addListener("#foo", "click", function() { alert('hello world!') } );

//YUI 3: 

YUI().use('node-base', function(Y) { Y.on("click", function(e) { alert("Hello World!") }, "#foo"); }); 

//jQuery:

$(function() { $('#foo').click( function() { alert("Hello World!") }); });


considering that this codes include also the dom ready check!

obviuosly YUI it's still a very good js lib plenty of utilities and widgets ready to use!

the only thing IMHO you should take care, is not to use a great resource in term of js loaded, more widgets require more KB, where for a normal tabs few line of js are needed and for a tree view same thing!

an example could be this select box replacement ipod style http://jsbin.com/ufuga/3 i made with 65 line of code (jquery), it can be similar to a file tree view!

hope this help a little!

good job!

[ Edited Sep 09 2010, 06:41PM ]
Go to top
Website
G4HDU
Sep 11 2010, 03:04AM
Registered Member #1920
Joined: Jun 09 2003, 03:48AM
Location: North West UK
Posts: 1395
That's why I was hesitating before going anywhere with it. I've been using prototype in my plugins because e107 will use it but I know jquery is SOOOO much better (and mootools as well I believe).

I think I'll look to move to jquery as there is just so much more support for it. I'll have to find some good tutorials.

Thanks for your observations.
Go to top
Website
aSeptik
Sep 11 2010, 10:37AM
Registered Member #22526
Joined: Nov 22 2005, 11:02AM
Location: Italy
Posts: 341
from what i know, mootools is prototype based, although it is robust and good one! regarding prototype i have used it in the past ( it is the first js lib i ever used ), but now i'm using jQuery, why!? i really don't know why! speed comparison
Go to top
Website
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System