Questions tagged [dojo]

Dojo Toolkit is an open source modular JavaScript library designed to ease the rapid development of cross-platform, JavaScript/Ajax-based applications and web sites. It is dual-licensed under the BSD License and the Academic Free License. Dojo uses the Asynchronous Module Definition (AMD) format for its source code, allowing completely modular web application development.

Dojo Toolkit is an open source modular JavaScript library designed to ease the rapid development of cross-platform, JavaScript/Ajax-based applications and web sites. It is dual-licensed under the BSD License and the Academic Free License.

Features

  • Easily make use of third party AMD-compliant libraries like jQuery, Backbone, mooTools, Underscore.js, ... .
  • Build sophisticated webapps using Dojo's widget library, "Dijit".
  • Make your apps ready-for-business using MVC Application Controller & DataBinding.
  • Powerful base APIs containing the essential capabilities any website needs.
  • Build mobile apps with beautiful, native looking themes, optimized for performance.
  • Use the cross-browser high-level gfx API for graphics, charting and visualization.

Links

Source code

Community

Getting started

Check out the reference cases at our blog.

Frequently asked questions

Books & Resources

9278 questions
68
votes
5 answers

What happened to Dojo in 2008?

Many of you have seen this graph of Google Trends of popular AJAX frameworks (Dojo, jQuery, YUI). The graph seems to make it clear that interest in Dojo collapsed in the second quarter of 2008, falling by 80%; jQuery picked up the slack and…
Dan Fabulich
  • 31,628
  • 35
  • 121
  • 153
65
votes
1 answer

dojox.gfx bounding box for Text and Group nodes

The documentation for getBoundingBox() in dojo says: Returns a bounding box of a shape. A text shape is a point-based object, so it doesn't define a bounding box. I don't get it. Any sane implementation of vector graphics for the web includes…
Elazar Leibovich
  • 30,136
  • 27
  • 116
  • 161
65
votes
4 answers

How to copy a DOM node with event listeners?

I tried node.cloneNode(true); // deep copy It doesn't seem to copy the event listeners that I added using node.addEventListener("click", someFunc);. We use the Dojo library.
Chakradar Raju
  • 2,231
  • 2
  • 20
  • 33
43
votes
1 answer

Missing events in custom dstore using WebSocket and dgrid

I am trying to create custom Store, which should use WebSocket or REST (in case of WebSocket failure). Code file rachet-store.js It works almost perfectly. It works without problems with the REST also (myRest). Problem is if the wsStore is used and…
Petr
  • 1,110
  • 10
  • 20
39
votes
3 answers

How to check if an object has a function? (DoJo)

var testObj = this.getView(); How can I check with DoJo (or just native JS) if testObj has callableFunction before I actually try to call callableFunction() and fail if it isn't there? I would prefer a native-DoJo solution as I need this to work on…
antonpug
  • 11,964
  • 27
  • 76
  • 120
39
votes
3 answers

REST vs. RPC in PHP

I'm building my own Ajax website, and I'm contemplating between REST and RPC. If my server supported Servlets I'd just install persevere and end the problem, but my server doesn't support Servlets. RPC is simpler to code (IMO) and can be written in…
the_drow
  • 17,134
  • 23
  • 116
  • 185
36
votes
3 answers

Chained promises not passing on rejection

I am have a problem understanding why rejections are not passed on through a promise chain and I am hoping someone will be able to help me understand why. To me, attaching functionality to a chain of promises implies an intent that I am depending on…
Jordan
  • 609
  • 1
  • 6
  • 9
35
votes
1 answer

What is the main difference between require() and define() function in dojo and when would we use either?

I am new to learning dojo and I have come across the require() and define() functions and I can not get my head around either of them. Also, when would I use either of them? A small demo or example would be beneficial. Many Thanks!
Simple-Solution
  • 3,895
  • 12
  • 42
  • 63
32
votes
2 answers

Dojo require() and AMD (1.7)

I'm having a heckuva time transitioning to Dojo and the new AMD structure, and I'm really hoping someone can shed some light on the whole concept. I've been living on Google for the last few weeks trying to find information on not the usage, but…
Phix
  • 7,757
  • 3
  • 31
  • 57
31
votes
3 answers

Warning : The page index.html ran insecure content

I deployed my application on google appe engine. My web site use Dojo with the template claro. When I run "google chrome inspection", I see a lot of warning when I navigate throught my site. Here is the type of warnings : The page index.html ran…
user376112
  • 839
  • 5
  • 15
  • 22
31
votes
4 answers

Loading Dojo dijit CSS from CDN

I am quite new to dojo world. Using dojo with google's CDN is well and Fine. But while using dijit just dojo.require() does not work. Where can I find the default CSS Themes from CDN ?? and another question out of quorisity: Would the the CSS…
Neel Basu
  • 11,848
  • 10
  • 71
  • 138
29
votes
3 answers

how to catch ALL javascript errors with window.onerror? (including dojo)

this question is a follow-up to javascript: how to display script errors in a popup alert? where it was explained how to catch regular javascript errors using: