Showing posts with label Dojo. Show all posts
Showing posts with label Dojo. Show all posts

Tuesday, July 20, 2010

Dive Into Dijit

One huge feature that sets the Dojo Toolkit apart from other JavaScript libraries is its UI component system: Dijit. A flexible, comprehensive collection of Dojo classes (complemented by corresponding assets like images, CSS files, etc.), Dijit allows you to create flexible, extensible, stylish widgets. To learn how to install, configure, and use basic Dijits within your web application, keep reading!
Dijit Widgets
http://www.sitepen.com/blog/2010/07/12/dive-into-dijit/

Sunday, December 13, 2009

Dojo 1.4 is out with Significant Improvements to Performance, Stability, and Features

Key updates mentioned are:

  • IO Pipeline topics
  • dojo.cache
  • dojo.contentHandlers
  • dojo.hash with native HTML5 onhashchange event support where available
  • Traversal and manipulation for NodeLists (the return value for dojo.query)
  • dojo.ready (easier to type than dojo.addOnLoad)
  • Hundreds of refinements to the Dijit API and collection of Dijits, and a few new widgets in DojoX
  • DataChart widget and other improvements to charting
  • dojox.drawing lands!
  • Editor improvements and new plug-ins in both Dijit and DojoX
  • Grid is faster, and the EnhancedGrid lands!
  • ForestStoreModel for the TreeGrid
  • GFX improvements
  • dojox.jq, a very experimental module aimed at trying to match the jQuery API as close as possible, but using Dojo underneath
  • Dojo build system optionally supports the Google Closure Tools compiler
  • Significant speed improvements, especially in IE
http://docs.dojocampus.org/releasenotes/1.4

Monday, March 9, 2009

drails

drails allows you to use RJS with Dojo in your Rails application. It completely replaces the need for Prototype/Scriptaculous in your application and let's you use the powerful Dojo Toolkit as your Javascript library.

Examples:
=========
The best way to see how to use drails helpers is to view the specs. Most people will be interested in prototype_helper_spec.rb and scriptaculous_helper_spec.rb. For a quick taste, here is an example of how you can create an link that replaces the "success_response" div on successful completion of an ajax call with the HTML returned by the server:

<%=link_to_remote "my link", :update => [ :success => "_response" ], :url => { :action => "myaction" }%>
<div id="success_response">...some html to be replaced...</div>

To see the usages for the drails generators for dojo modules, dijits, and build profiles, type this from the command line:

cd my_rails_app; script/generate dojo

drails comes with some handy rake tasks for incorporating dojo builds. To see what is available, type this from the command line.

cd my_rails_app; rake -T | grep drails

http://github.com/foobarfighter/drails/tree/v1.0.0