Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Learning Dojo: DOM selection and manipulation.  RSS feed

 
Paul Yule
Ranch Hand
Posts: 230
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!