Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Learning Dojo: DOM selection and manipulation.

 
Paul Yule
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have recently been experimenting with JQuery and one thing I have to say I'm impressed with is the ability to simply and concisely select certain DOM elements through a series of chaining methods and filters. Then, changing the HTML markup is as simple as appending / prepending more DOM elements. If you are familiar with JQuery at all is Dojo similar in structure to how it handles DOM element selection/manipulation? Would you recommend your book as a primary resource for this basic task?
 
Peter Svensson
Author
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

Yes, Dojo has a similar query engine called dojo.query, which works in a similar vein. I don't cover it in my book, because I don't work in that way,using custom widgets with their own templates.

here's a good reference (with comparison to jQuery and others);

http://dojotoolkit.org/node/336

Cheers,
PS
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic