Archive for 'Dojo'
Working with Web Services with ease; dojo.data and the WikipediaStore
June 27, 2008 | Filed under: Dojo
Revin Guillen has posted about the Dojo dojo.data API and how you can layer access to Web services in a very elegant way.
His example shows building access to Wikipedia (demo):
Dojo recently received a new data store that demonstrates exactly what we want: dojox.data.WikipediaStore. It does just what it sounds like, turning Wikipedia into a simple object you can …
Badging Flickr with Dojo
June 25, 2008 | Filed under: Dojo
Dylan Schiemann has a really nice case study post on implementing a Flickr badge with Dojo.
What is particularly interesting is how he starts with a simple version:
PLAIN TEXT
HTML:
…
<link rel=”stylesheet” href=”/dojo/dojox/image/resources/image.css” />
<style type=”text/css”>
img.thing { width:50px; height:50px; }
</style>
…
</head>
…
<div dojoType=”dojox.image.FlickrBadge” rows=”8″ cols=”3″ username=”dylans”
…
Dojo gets AIM API Support from AOL
June 17, 2008 | Filed under: Dojo
James Burke of AOL announced that AOL has released Dojo modules which wrap AOL’s Web AIM API. This is a very big announcement as the Web AIM API lets developers incorporate core AIM functionality into any web page including the ability to sign on, send and receive IMs, and obtain a user’s Buddy List.
My employer, AOL, …
Nexaweb announces dojo.E markup and runtime
June 4, 2008 | Filed under: Dojo
Nexaweb has released a new product that build on Dojo, dojo.E:
dojo.E provides developers with the ability to use an XML based markup language to add in their Ajax behaviors. Markup whether — XML, HTML or CSS — simplifies development by allow developers to convey in simple text format what they would otherwise need to convey in code. Markup …
dojo.E brings XML Markup Language and Runtime to dojo
June 4, 2008 | Filed under: Dojo
Over the last few months we have been working on the dojo.E project and just released the first version. dojo.E is designed to be a small JavaScript library that developers use in conjunction with the dojo toolkit. Completely open source the library is licensed under the Apache 2.0 license.
Dojo Firebug Lite: Beyond console.log
June 3, 2008 | Filed under: Dojo
Mike Wilcox has posted on Firebug Lite for Dojo and shows how he has taken it beyond console.log().
I was most excited about the DOM inspector:
Yes, I did say that a DOM inspector would imitate existing tools. However, I implemented this for a colleague who was struggling with a particularly nasty IE 6.0 bug one day (more like one month), …
Google hosting popular Javascript Libraries
May 27, 2008 | Filed under: Dojo
jQuery, Prototype, Scriptaculous, MooTools, and Dojo
dojo.workers: a showcase
May 27, 2008 | Filed under: Dojo
Pete Higgins of Dojo has created a nice example, dojo.workers, that puts together coverflow with Dijit and some dojo.query animations.
He even takes out his frustrations with IE 6 as he creates a branch that looks like this
PLAIN TEXT
JAVASCRIPT:
var newp = function(){
// IE6 branch of this demo
window.location.href = “http://” +
…
dojox.lang.aspect: More than just interception
May 19, 2008 | Filed under: Dojo
Eugene Lazutkin has written a very thorough post on dojox.lang.aspect a module that takes AOP seriously in JavaScript.
As someone who has been to a couple AOSDs (the AOP software conference) and was excited to see AOP on the scene, it is good to see someone who gets it working on the JavaScript side.
Of course, we all get the interception …
Exclusive Mastering Dojo Chapters
May 9, 2008 | Filed under: Dojo
Craig Riecke, Rawld Gill, and Alex Russell, along with the Pragmatic Programmers themselves have been kind enough to give the Ajaxian community some exclusive extracts from the Mastering Dojo beta book.
What do we have on the docket?
First, we have details on the Dojo DOM Apis. Specifically, the author takes us through a challenge involving …
Porting Dojo Methods to Flash
May 6, 2008 | Filed under: Dojo
Mike Wilcox has started a nice series of posts on porting Dojo methods to Flash as a homage for Open Screen (aside: I applaud Adobe’s intentions, but need to see a non-assert of their IP before I can do anything with it.)
In part one of the series Mike ports dojo.hitch to ActionScript:
PLAIN TEXT
JAVASCRIPT:
_global.lang = {
…
Usable Directory Listings with Dojo
April 30, 2008 | Filed under: Dojo
Sam Foster has written up an example of using Dojo to create directory listings with keyboard shortcuts.
You can now tab over to the box on the top right, and filter your selections:
This tutorial shows you how to upgrade those plain vanilla pages to make getting around a little faster and along …
Java in JavaScript
April 28, 2008 | Filed under: Dojo
As John Resig reports, the Japanese Shibuja.JS user group managed to port (at least in parts) the Java Virtual Machine over to JavaScript. The project is called Orto and there is a Japanese PDF explaining the details (I guess) available on John’s site.
Using this you can convert Java code into bytecode and embed it in the …
Embed your data- in HTML 5
April 23, 2008 | Filed under: Dojo
Simon Willison pointed out the part of the HTML 5 spec that discusses a way to add attributes to HTML elements for your own needs via data-.
For example, a spaceship for a game:
PLAIN TEXT
HTML:
<div class=”spaceship” data-id=”92432″
data-weapons=”laser 2″ data-shields=”50%”
data-x=”30″ data-y=”10″ data-z=”90″>
<button class=”fire”
onclick=”spaceships[this.parentNode.dataset.id].fire()”>
Fire
</button>
</div>
Every HTML element may …
Dojo XHR Plugins; How do you want your XHR today?
April 15, 2008 | Filed under: Dojo
Neil Roberts goes into the XHR Plugins that Dojo uses and how you can extend the system to have your own.
If you look at dojo.xhrGet you will see “Acceptable values are: text (default), json, json-comment-optional, json-comment-filtered, javascript, xml”, but:
What you may not know is that the handleAs parameter is merely a way of specifying what plugin to use. …
Dojo Helpers Plugin for Rails
April 14, 2008 | Filed under: Dojo
A plugin designed to make it easier to use the dojo toolkit javascript library with your rails application.
Dojo 1.1 Nice Features
April 10, 2008 | Filed under: Dojo
Alex Russell has written up some of the features of Dojo 1.1 that may not shout out at you in the release notes:
Core
I should mention a couple of Core features from 1.1 that might otherwise go overlooked, though. The first is a lack of visible change. Dojo Core and Dijit from 1.1 are fully backwards compatible with 1.0. …
Chandler Server Upgrades to Dojo 1.0.2
April 8, 2008 | Filed under: Dojo
The Chandler Project, an open source, standards-based information manager, has upgraded their OSS PIM to use Dojo v1.0.2. The upgrade has provided for improved performance and extended the UI capabilities via Dojo’s user interface building API, Dijit.
The first changes I’m excited about are, like our latest release, less wholesale modifications than improvements and commitments to stable APIs …
Dojo-Mini and the Feature Explorer
April 4, 2008 | Filed under: Dojo
Above is the breakdown from the Dojo distribution. Peter Higgins was working on an AIR application using the new Dojo AIR integration and wanted to do a better job at stripping down the Dojo build for what he needed.
He ended up with a set of scripts to create a custom build nicely which includes:
Nuking all of …
Popularity, History, and SCRIPT SHARED
April 4, 2008 | Filed under: Dojo
Brendan Eich has responded to Doug Crockford talking about the popularity of JavaScript, and the hash method for sharing JavaScript, in his post on Popularity.
In in he starts out by discussing the history of JavaScript, warped as it may be:
As I’ve often said, and as others at Netscape can confirm, I was recruited
to Netscape with the promise …
Dojo 1.1 Released
March 28, 2008 | Filed under: Dojo
The Dojo team has released version 1.1 which includes from over 800 improvements:
An easy to use and significantly improved Dojo API Viewer with some seriously great features, including the ability to easily find the original definition of a method that is “mixed-in”
A growing collection of demos, tutorials, and articles
A new BorderContainer Dijit, which is a much better …
Tu Tecnologo » Dojo: Libreria Interactiva De javaScript
March 25, 2008 | Filed under: Dojo
Dojo es un Framework que contiene APIs y widgets (controles) para facilitar el desarrollo de aplicaciones Web que utilicen tecnología AJAX. Contiene un sistema de empaquetado inteligente, los efectos de UI, drag and drop APIs, widget APIs, abstracción de eventos, almacenamiento de APIs en el cliente, e interacción de APIs con AJAX.
JavaScript Metaclass Programming
March 19, 2008 | Filed under: Dojo
Neil Roberts is continuing a really nice set of blog posts with one that teaches us about JavaScript Metaclass Programming:
Metaclass programming is the programming that builds a class. Since most of the time a metaclass simply takes an already declared class and manipulates it, you can think of a metaclass as a template: a class goes in, and a …
Dojo Storage updated for 1.0
March 17, 2008 | Filed under: Dojo
Brad Neuberg, a partner of crime on the Gears team, has released an update to Dojo Storage that has it cooking with gas on the new Dojo 1.x codebase:
Dojo Storage makes it possible to store large amounts of data (hundreds or megabytes of K) on the client-side, way beyond the 4K limit of cookies. Developers are given a …
Getting some $ with Dojo
March 13, 2008 | Filed under: Dojo
Neil Roberts has posted a great article on Creating Your Own $ with Dojo:
The bling, one of the best global variables in JavaScript. A tool which has come to mean, as a function, a way to locate a node or set of nodes. And, as a namespace, a simple way to access often-used functionality. …
DWR 3.0 Features, Interview with Joe Walker
March 7, 2008 | Filed under: Dojo
SitePen’s Dylan Schiemann has posted about the recent InfoQ interview of Joe Walker and the upcoming release of DWR 3.0. The newest features for DWR include:
Offline Support (Google Gears and/or Dojo Offline)
TIBCO General Interface integration
Aptana Jaxer integration
OpenAjax Hub, PubSub, Bayeux, etc.
Joe gave a nice example of how the offline functionality could work:
For example, InfoQ uses …
iWebMvc: DWR, Dojo, Spring and Hibernate/JPA
March 5, 2008 | Filed under: Dojo
Joe Walker tipped me off to a preview of iWebMvc which is meta framework that ties together DWR, Dojo, Spring and Hibernate/JPA a la AppFuse or Grails.
It is created by Jose Noheda, a DWR commiter, and the project aims are:
Is based on Java
Although supporting Grooy / JRuby is a plus
Helps me …
Dojo and Django templates on the server side with Jaxer
March 4, 2008 | Filed under: Dojo
Yesterday we posted about Dojo and AIR and how the framework could be well suited for certain desktop applications.
Today we have Kriz Zyp talking about their Jaxer support and how you can use the Django template language, that Dojo recently added, to once again do its thing on the server side.
Kris tells us more:
PLAIN TEXT
HTML:…
Django templates an Dojo Data stores: a powerful combination
March 3, 2008 | Filed under: Dojo
Django templates enabled are a flexible and powerful method of HTML templating. Now all this is available on the browser with the Dojo toolkit and dojox.dtl. Dojo data stores allow the browser to access all different kinds of data from all kinds of sources. Bring these two together, and you have an amazing templating engine for JavaScript!
Dojo on AIR shows detail on AIR itself
March 3, 2008 | Filed under: Dojo
At first when you hear “FooAjaxLibrary now supports AIR” you think “er, OK, AIR has WebKit so it supports them all doesn’t it?”. SitePen added support for AIR in Dojo and gave us detailed information about the changes.
The value of this document is that it gives hints to us Ajax folk as we develop applications running on AIR. …
Slickspeed Adds Dojo
February 21, 2008 | Filed under: Dojo
The MooTools folks have added Dojo 1.0.2 to the set of tests on their Slickspeed. It is actually quite cool of them to put up this test and compare other frameworks.
I just ran it on Firefox beta 3 on the Mac and the final results (for what it is worth) were:
Dojo 1.0.2: 145 ms
JQuery 1.2.3: 220 ms
MooTools 1.2beta2: 148 …
Dojo rating widget with dojo.gfx
February 20, 2008 | Filed under: Dojo
Tobias von Klipstein has created a Dojo rating component that uses dojo.gfx:
This example should demonstrate a case, where geometric forms can be combined with other widgets and how simple it is to achieve a widget using vector graphics. dojox.gfx was a great help, because it prints the appropriate vector format for you (svg/vml/canvas) and the widget now works with …
Extending dojo.query()
February 13, 2008 | Filed under: Dojo
Alex Russell has taken some time to share the path you take when you go the Dojo Way and “build with, not on”. He posted an example of how to extend dojo.query() which walks through the steps:
Step 1: grok dojo.NodeList
dojo.NodeList is the Array subclass which all dojo.query() calls return an instance of. Therefore, to extend the results of a …
Dojo Roundup: A/V, Animation, and a lot more
February 12, 2008 | Filed under: Dojo
A lot of news came together at the Dojo Developer Days event.
Below is my meta-roundup based on Alex’s wrapup, and other news.
Animation
Eugene Lazutkin (SitePen) has been a busy man. His impressive work on dojox.gfx, dojox.gfx3d, and dojox.charting made Dojo 1.0 the best tool around for portably drawing vector graphics in a browser without plugins, and for 1.1 …
Collaborative Drawing with Sketch
February 5, 2008 | Filed under: Dojo
Roberto Saccon has taken the Dojo example program sketch, which itself “fully implements the idea of pipelining the drawing process based on sequential commands for adding, modifying or deleting objects” and has Cometized it:
Very little additional code was necessary to combine the chat app and the drawing app into a collaborative example app. I added a single line …
Functional Programming with JavaScript and Dojo
February 4, 2008 | Filed under: Dojo
Eugene Lazutkin has written a piece on Functional fun in JavaScript with Dojo where he delves into the land of functional and how it is available in JavaScript.
Eugene maps out some of the helpful functions that JavaScript itself has added over time:
JS 1.6 (in Firefox 1.5) introduced
so-called Array extras:
special Array methods, which help to …
Dojo The Free Javascript Toolkit
January 29, 2008 | Filed under: Dojo
Dojo is an Open Source DHTML toolkit written in JavaScript. It builds on several contributed code bases (nWidgets, Burstlib, f(m)), which is why we refer to it sometimes as a “unified” toolkit. Dojo aims to solve some long-standing historical problems with DHTML which prevented mass adoption of dynamic web application development.
Javascript CSS Selector Engine Timeline
January 14, 2008 | Filed under: Dojo
Paul Irish put together a bit of history in the form of the Javascript CSS selector engine timeline which shows us that “selector processing power has gone from Pinto power to a Mustang GT 500.”
2003.03.25: document.getElementsBySelector() by Simon Willison (later used in behaviour.js) [source]
2005.08.19: CssQuery(): by Dean Edwards [source]
2005.08.22: jSelect …
dojo.moj.oe: parody of script.aculo.us homepage in Dojo
January 14, 2008 | Filed under: Dojo
Peter Higgins had a little fun, and created a parody of the script.aculo.us home page: dojo.moj.oe.
The site shows off the new easing code that Robert Penner contributed to Dojo:
A small change in the Animation system to accommodate
the inclusion of the entire set of
Robert Penner’s Flash easing functions to The Dojo Toolkit. They were contributed…
How IE Mangles The Design Of JavaScript Libraries
January 10, 2008 | Filed under: Dojo
People like to moan about IE, and often don’t have anything to back it up. “IE sucks” doesn’t count.
Alex Russell, on the other hand, has written about how IE mangles the design of JavaScript libraries such as Dojo. His list both shows us the methods to the madness, informs us on the issues, and hopefully wakes up the powers …
20,000 Reasons that Comet Scales
January 7, 2008 | Filed under: Dojo
Greg Wilkins is marching a long with better and more performant Comet support as shown in his piece 20,000 Reasons Why Comet Scales:
After some recent optimizations, the Dojo Cometd implementation of the Bayeux protocol running on the Jetty web server can now handle up to 20,000 simultaneous users per server while maintaining sub-second latency.
Photophlow: Interactive Community Flickr
January 7, 2008 | Filed under: Dojo
Photophlow is a rich interactive communication device around Flickr, created by Neil Berkman and striatic.
Photophlow allows you to add Flickr streams to its chat rooms, so you can discuss away. It also integrates with Twitter.
A view source shows both Prototype and Dojo under the hood, and the UI itself is quite rich. Comet is used for pushing …
Bunkai: Dojo Interactive Workbench
January 7, 2008 | Filed under: Dojo
Peter Svensson is back in the online IDE business with a new interactive workbench called Bunkai.
Peter formerly created JDA Composer which he claimed “tried to do too many things at once, and so it was hard to understand at first glance.”
He setup apart things with a new goal:
My goal is to create a small, comprehensive editor which shows …
DWR joins the Dojo Foundation - Joe Walker joins SitePen
December 11, 2007 | Filed under: Dojo
I am really excited to post this piece of news, as I genuinely like everyone involved. At the last Ajax Experience, Alex Russell and Joe Walker gave a joint keynote. At one point it was going to be slightly different, but this news hadn’t been totally completed so it was held off (having to start a UK company, blah blah).
The …
Sucking in Dojo, YUI, or jQuery into any page
December 11, 2007 | Filed under: Dojo
Gareth Rushgrove has been having fun with Jash, the cross browser shell (if you miss Firebug as you are in Safari land, give it a go) and has bookmarklets that allow you to debug web pages with jQuery or Dojo, or YUI.
Suck in your framework of choice, and start dinking around on the fly….
Comet. Not as painful as you think!
December 7, 2007 | Filed under: Dojo
Simon Willison was worried that the amount of complexity involved with Comet meant it was out of bounds to all but the most dedicated JavaScript hackers but after playing with it, concluded:
I’m pleased to admit that I was wrong: Comet is probably about 90% of the way to being usable for mainstream projects, and the few remaining barriers (Bayeux …
Keep your JavaScript Small with Dojo ShrinkSafe
December 5, 2007 | Filed under: Dojo
ShrinkSafe is a JavaScript “compression” system. It can typically reduce the size of your scripts by a third or more, depending on your programming style.
Nintendo relaunches with Dojo, Mootools, and more
November 29, 2007 | Filed under: Dojo
Nintendo.com has relaunched, and a view source shows you that it now sports Dojo, Mootools, and much more script.
As you hunt around for where you will see fun stuff in action you will find the game guide:
Take a peak and you see how they use inline templating.
PLAIN TEXT
HTML:
<textarea id=”box_template” …
Comparing Prototype/Scriptaculous, Dojo, Ext, JQuery, Mochikit and . . .
November 15, 2007 | Filed under: Dojo
I am running a comparison of various javascript toolkits on various parameters, please participate in this and put in your value able opinions, knowledge and expertise so that it is useful to the large number of javascript developers coming in!
Dissecting Dijit: Dojo Widgets
November 14, 2007 | Filed under: Dojo
One of the best parts of Dojo 1.0 has been how often the team has been blogging of all things. It has been great!
Mike Wilcox has posted about Dijit, the widget platform for Dojo 1.0.
His piece covers dojo.parser, dojo.declare, the widget markup, the lifecycle of widgets, and more. Great stuff.
The lifecycle is very thorough:
preamble()
Originating in …

