October 31st, 2008 – by Kris Zyp
JSON Schema is a specification for defining the structure of JSON data. JSON Schema provides the definition of contractual type constraints for describing a valid set of values for object style data structures. JSON Schema development is based on the concepts from XML Schema, RelaxNG, and Kwalify, but is a JSON-based format, so it is well suited for JSON-based applications. It is intended to provide validation, documentation, and interaction control. Defining type constraints provides a standardized form of data documentation that can be used for data persistence, form generation, and creating contracts on data used in web services.
Continue reading
Tags: json, jsonschema, schema
Posted in Dojo, JavaScript, Persevere, ajax, api | 4 Comments
October 28th, 2008 – by Jason Cline
The build system that is part of the Dojo Toolkit is an incredibly powerful tool. Making sure that your custom build is always up-to-date in your web application can be time consuming and error prone if done manually. This post will demonstrate how to quickly add custom Dojo builds into any web application that uses Apache Ant.
Continue reading
Posted in Dojo, Performance | 6 Comments
October 27th, 2008 – by Dylan Schiemann
The Dojo Toolkit has been around for over four years, and has undergone significant changes, both big and small, in becoming a great JavaScript toolkit. This article debunks myth and outdated assumptions (both fair and false) applied to Dojo over its four plus years of development.
Continue reading
Posted in Dojo, JavaScript, Open Source, Performance, ajax, thoughts | 45 Comments
October 24th, 2008 – by Eugene Lazutkin
A frequently overlooked and underused feature of Dojo’s Drag-and-Drop (DnD) module is drag handles.
DnD is commonly implemented as a set of draggable elements where the entire DnD item (usually a subtree of DOM nodes) can detect the drag action. In some cases, this is not desirable:
- DnD items that contain active elements: links, text areas, buttons, check boxes, other common form elements. The drag action can prevent normal interactions with them, e.g., text selection inside text boxes.
- Large DnD items that occupy most of screen. Frequently these items have collapsed and expanded states, and should not be dragged while expanded.
Continue reading
Tags: dnd, dojo.dnd, drag and drop, drag handles
Posted in Dojo, UI Design | 6 Comments
October 23rd, 2008 – by mwilcox
The Dojo Toolkit 1.2 has landed and I’ll be talking about a new feature — dojo.attr — and its closely related cousin, dojo.style. In a given block of HTML, not all attributes are created equally. Take the following example: