Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9061423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:28:52+00:00 2026-06-16T15:28:52+00:00

We use dojo/parser on our application to parse html produced by our server side

  • 0

We use dojo/parser on our application to parse html produced by our server side templating language using the dojo-data-type attribute.

One common thing we need to do is access a node that’s part of the modules’ domNode to do something with. We’ve come up with a unique id method for id’ing the nodes we want, but that leaves me uneasy for various reasons.

the _templated mixin allows you to define ‘attach-points’ in templates that get attached to the object instance. Does something like this exist for for the parser, so a node can be easily identified by the module code?

If not, what’s the best way to parse the module’s domNode to find these important child nodes, especially avoiding child nodes that belong to another (child) module’s domNode?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:28:53+00:00Added an answer on June 16, 2026 at 3:28 pm

    No, attach-point is not supported in the parser. That is a Dijit template thing.

    Using an ID will work, but that runs the risk of duplicate IDs and things will break. I’d suggest using classNames and finding your nodes with dojo.query.

    If the attachable items are other Dijits, you can access them with widget.getChildren();

    If you are not using all the features of dojo.parser (there a lot that I don’t use) you could build your own. I built one, and it’s shocking how tiny it is compared to Dojo’s. Note that mine has just been created and has had very little testing, so this is just for reference. https://github.com/clubajax/dx-ui/blob/master/util/parser.js

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a web application using Grails. I decided to use dojo and
I am using dojo forms and submitting using AJAX. I use 2 methods of
When I use an import such as <script type=text/javascript src=http://o.aolcdn.com/dojo/1.2.3/dojo/dojo.xd.js djConfig=parseOnLoad:true, isDebug: true></script> I
I have this situation: application server running on example.com - this is where html
Can I use Dojo in an business application free of cost?
I'm trying to use Dojo to post to my server. The server is returning
I am trying to build dojo 1.7 to use in my phonegap application. I
My question is: can we use dojo.xhrPost to post some Json data? More detail:
I deployed my application on google appe engine. My web site use Dojo with
I'm using the following html to load dojo from Google's hosting. <script src=http://www.google.com/jsapi></script> <script

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.