• Dojo FAQ: How do you set a default selected RadioButton?

    Dojo FAQ: How do you set a default selected RadioButton?

    Mangala SSS Khalsa | February 19, 2014

    The widgets provided in Dojo’s Dijit library include not only advanced widgets not provided by HTML, but also enhanced versions of the basic HTML form elements, like <input>. Dijit’s dijit/form/RadioButton provides the same basic functionality as an HTML radio button, so let’s look at how you set one to be checked by default.

    Read More
  • Creating Dojo Widgets with Inline Templates

    Creating Dojo Widgets with Inline Templates

    Nick Nisi | February 13, 2014

    Many Dojo widgets make use of client-side templating for generating the UI. Template HTML files are brought in to the page with dojo/text, parsed and converted to DOM nodes, and placed on the page, allowing our code to make substitutions, instantiate widgets within the template, and hook up events and attach points.

    Read More
  • Dojo FAQ: How do I use CORS with Dojo?

    Dojo FAQ: How do I use CORS with Dojo?

    Mangala SSS Khalsa | January 15, 2014

    In web browsers that support Cross-Origin Resource Sharing (CORS) via XMLHttpRequest objects, Dojo’s XHR mechanism can make cross-domain requests out of the box.

    Read More
  • Private Matters: Convention and Closures

    Private Matters: Convention and Closures

    Kris Zyp | January 6, 2014

    Many object-oriented programming (OOP) languages provide a way to define private properties and methods. This allows objects to encapsulate functionality and state information. This encapsulation leads to a clear distinction between the internal implementation and a clean external interface.

    Read More
  • Persevere on Heroku

    Persevere on Heroku

    Kris Zyp | December 4, 2013

    It is becoming increasingly popular to deploy Node.js-based applications to Node-friendly hosting services to take advantage of the pre-built, reliable, robust architecture and infrastructure these services provide. Persevere, a JavaScript server framework for developing RESTful applications on Node.js, is an excellent fit for these types of hosting services.

    Read More
  • A SitePen Christmas Special

    A SitePen Christmas Special

    Torrey Rice | December 3, 2013

    What a great year 2013 has been! We’re feeling (collectively) like Ebenezer Scrooge in the final chapters of Charles Dickens’ A Christmas Carol – except we haven’t been jerks up ’til now and we think working at SitePen is a year-round Christmas vacation, unlike the earlier chapters wherein Scrooge forces poor Mr.

    Read More
  • Dojo FAQ: What is the difference between set and _set?

    Dojo FAQ: What is the difference between set and _set?

    Ken Franqueiro | October 16, 2013

    Dijit widgets provide the ability to write custom setters and getters, whose logic is executed when calling the set and get methods. dijit/_WidgetBase also provides a _set method, which is very important when writing widgets, but can cause a bit of confusion due to its name.

    Read More
  • Dojo FAQ: What is the benefit to using run-time binding with lang.hitch?

    Dojo FAQ: What is the benefit to using run-time binding with lang.hitch?

    Jason Cheatham | September 25, 2013

    A concept that is often confusing to new JavaScript developers is the idea of function context, specifically as it relates to the value of this. For example, methods in Java are bound to classes at compile time, and this in a method call will always refer to an instance of the method’s class.

    Read More
  • Building an application with xstyle

    Building an application with xstyle

    Kris Zyp | September 10, 2013

    In this post, we want to walk through how you would get started building an application using xstyle, an extensible CSS framework. xstyle provides extensions that allows us to declaratively describe an user interface, making use of data bindings, element generation, and components, giving us an elegant means to create an application.

    Read More
  • Dojo FAQ: How can I add filtering controls to dgrid?

    Dojo FAQ: How can I add filtering controls to dgrid?

    Ken Franqueiro | September 6, 2013

    As dgrid’s adoption continues to rise, one of the most common questions developers ask is how to add filtering controls. Unlike some grid implementations, dgrid does not include an out-of-the-box component implementing a user interface for filtering. This leaves some developers unsure of where to begin.

    Read More
  • Dojo FAQ: How do you cleanly remove aspect handles?

    Dojo FAQ: How do you cleanly remove aspect handles?

    Mangala SSS Khalsa | August 19, 2013

    In addition to a simple, consistent, cross-browser interface to DOM events, dojo/on provides for very convenient clean-up – the function returns a handle with a remove method that will un-register the event listener. Clean-up concerns are not limited to DOM events, so Dojo provides the same interface for dojo/aspect and dojo/topic.

    Read More
  • Dojo FAQ: dojo/domReady vs dojo/ready

    Dojo FAQ: dojo/domReady vs dojo/ready

    Matthew Maxwell | April 17, 2013

    We answer many, many, many questions on a daily basis through our Dojo training workshops, JavaScript support plans and during our customers’ development projects. We have bucket-loads of answered questions. What to do with them all… Oh? Provide you with the answers? Ok.

    Read More
  • Dojo Tutorial: Feature Detection and Device Optimized Builds

    Dojo Tutorial: Feature Detection and Device Optimized Builds

    Dylan Schiemann | January 25, 2013

    As part of our great updates to the Dojo Tutorials for Dojo 1.8, we’ve been busy creating several new tutorials. Feature Detection and Device Optimized Builds Dojo 1.7+ now uses the popular has() pattern for feature detection in combination with a has()-aware build system.

    Read More
  • Generating and Viewing Custom Dojo API Documentation

    Generating and Viewing Custom Dojo API Documentation

    Paul Bouchon | January 18, 2013

    When developing a JavaScript framework that others will consume, it’s hugely beneficial to provide clean, organized API documentation to accompany your codebase. With the August release of Dojo 1.8, we saw a brand new, extensible documentation parser, which is used to generate output for Dojo’s API viewer.

    Read More
  • Tis the season for a FREE Dojo Workshop!

    Tis the season for a FREE Dojo Workshop!

    Torrey Rice | December 13, 2012

    Want to learn Dojo in 2013?  Great! We want to teach you and coincidentally we have just completed a total revamp of our entire line of Dojo Workshops! Sign up today and get Dojo 101 for FREE Since this is the season for giving, we've decided to do just that!  We are giving away our

    Read More
  • Dive Into Dijit Forms with AMD

    Dive Into Dijit Forms with AMD

    Mike Wilcox | November 16, 2012

    As was illustrated with our Dive Into Dijit with AMD post, the Dijit library provides an extremely powerful, flexible set of Dojo-based widgets with which you may easily enhance the look and functionality of your web application.  These widgets include drop down / popup menus, dialogs, page layouts, trees, progress bars, and form elements.

    Read More
  • Dojo Tutorial: Key Events

    Dojo Tutorial: Key Events

    Dylan Schiemann | November 15, 2012

    As part of our great updates to the Dojo Tutorials for Dojo 1.8, we’ve been busy creating several new tutorials. Key Events This tutorial teaches you how to easily handle keyboard events with Dojo’s event normalization and dojo/keys implementation. Check out the Key Events tutorial for Dojo 1.8, 1.7, or 1.

    Read More
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Privacy Policy