• You are currently browsing the archives for the YUI category.

  • Archive for the ‘YUI’ Category

    Reason #21312 to build accessible data tables – convert them directly to YUI flash charts!

    Thursday, January 17th, 2008

    Following up the success of the data table to Google chart post, and the request in the comments to do the same for YUI charts, go and check the YUIblog today (like, now) and get your fix there:

    example of how the script creates a chart above a data table from the table data

    The elevator pitch:

    • Create a valid HTML data table
    • Add two script tags to the body and a class to each table
    • Have tasty pie charts above each of the tables

    [tags]tables,accessibility,yui,flash,progressive enhancement[/tags]

    YUI on the go – load YUI components on demand

    Friday, December 7th, 2007

    This is one of my talks at the Yahoo! Frontend Engineering summit in London and it deals with the options of cutting down the size of the YUI library components. There have been many articles and posts about this subject already but none really explained the idea of using YAHOO_config to load components on demand instead of using the YUI loader.

    This is also the trick I used to create the unobtrusive flickr badge v2.

    [tags]yahoof2elondon07,webdevelopmentsummit,yahoo,yui,javascript,lazyload,widgets,badges,performance,speed,webdevtrick[/tags]

    YUI 2.4.0 is out – CSS Selector engine, JSON support, dynamic CSS/script getter and lots more

    Wednesday, December 5th, 2007

    It is quite cool to see that your feedback is being implemented in something as big as the YUI. With every release the team excels itself building new components but also fixing and changing the existing ones.

    Part of my job is to test the YUI for the European market (as we by default develop in 5 languages and encounter totally different issues) and in Asia (oh well, obvious that there are differences) and I am happy to say that all the problems we found got fixed and several of our suggestions implemented in this release.

    While a lot of this is under the hood you can also see some new components in the 2.4.0 release:

    • Probably the most anticipated step is YUI getting a jQuery style CSS selector engine which allows you to quickly access the document without having how to traverse the Dom with native functions.
    • For those who need to work with numerical data a lot, the YUI now has a Flash charts component which allows you to create fancy pies and graphs easy
    • The new get utility is not the same as YAHOO.Dom.Get() but allows you to load scripts and CSS on demand after the page has been rendered by creating new nodes and having control over what has been loaded. This is quite handy in terms of page performances and I waxed lyrical over that in the past.
    • Those who love to take your Script to the garage and give them an intensive test-run will love the new Profiler which profiles JS in a browser environment
    • And last but not least we finally proclaimed our undying love to the JSON format by adding a new JSON component that allows you to stringify and validate JSON you retrieve either with dynamic script nodes or AJAX.

    Again, under the hood, there are a lot of changes you cannot see but result in much better performance, especially in the DragDrop and the Rich Text Editor Control.

    [tags]YUI,libraries,upgrade,news,json,selectorengine,flashcharts,charting,profiling[/tags]