• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Dojo & DOM

Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter Svensson,

Dojo only provides portion of DOM manipulation. Where incompatibility in browsers exists or APIs are not defined.

Does "Learning Dojo" provide a reference to these standard DOM APIs? (perhaps in an appendix) If not, what would you suggest as a reference for those APIs?

Are there any extensions to Dojo that provide additional DOM manipulation, perhaps for specific formats of manipulating?
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bill,

I don't cover a lotof that specifically, no. I can give some reference though. Just recently, it was decided to adopt a new functioncalled attr;


Almost all state changes in both Dojo widgets and DOM elements and styling can be done (or checked) with attr, which simplifies thing very much.

Examples from the article;

var node = dojo.byId("testDiv");
onOver = function(evt){console.warn('OVER');}

dojo.attr(node, "onmouseover", onOver);
dojo.attr(node, "tabindex", 1);
dojo.attr(node, "style", {"background": "#ff0000"});
dojo.attr(node, "name", "nameAtt");
dojo.attr(node, "innerHTML", "New Content");

No, tomorrow we rule the world! With this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic