Published on 2007-06-23 09:04:02

Exciting times for the jQuery project, Digg is now using jQuery for their DOM, Ajax & animation needs. The switch came with the new comments section, where all animations are now powered by jQuery. The new system completely took advantage of plugins to build out the system. These included Klaus Hartl's jQuery cookie plugin and Ken Stanley’s FlyDOM for jQuery and totally validates the quality of the work being produced by the jQuery community. Having Digg as a user really bolsters to project's image and assures jQuery's place as one of the top JavaScript libraries available. Its a very big development for the team and the project. Via Rey Bango.

Probably the coolest, technically speaking, portion of the new comments is the manner in which most of the page is created. No longer do we create static HTML in PHP and send you a huge HTML page. Instead we give you the basics and, via AJAX/JSON, we make requests to the API and dynamically create the DOM using the FlyDOM jQuery plugin. The FlyDOM JSON templates are a stroke of genius if you’re looking at loading JSON dynamically into the DOM. The advantage of this is that initial page loads are much snappier and you can load the threads you wish to read on demand.


Related Entries

Member of the PHP Magazine Network, Copyright (C) 2005-2008 phpmagazine.net All Rights Reserved