CSS Box Model and Dojo/dom-geometry

Since Dojo 1.7, dojo.position, dojo.marginBox, and dojo.contentBox should be called with dojo/dom-geometry module. dojo.position returns an object for the size and the x/y coordinates of the domNode. marginBox and contentBox are based on CSS box model so users can manipulate the position of a domNode. Basically marginBox includes information for margin/padding/border-width, but contentbox only looks […]

Continue reading →

Dijit Progressbar

For my first Dojo application, I decided to make a progress bar, and a back button displays after it reaches 100%. Live Demo Script on the html page. <script type=”text/javascript”> dojo.require(“dijit.ProgressBar”); dojo.require(“dijit.form.Button”); dojo.require(“dojo.parser”); dojo.addOnLoad(function progressBar() { var timer = 0; var progressInterval = setInterval(function(evt) { timer++; dijit.byId(“downloadProgress”).update({progress : timer, label:”Loading…”}); if(timer > 99){ clearInterval(progressInterval); dijit.byId(“downloadProgress”).update({label:”Done”}); […]

Continue reading →