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 7749135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:57:53+00:00 2026-06-01T10:57:53+00:00

I tried doing var div = document.createElement(‘div’); var nodeList = new query.NodeList(); nodeList.push(div); nodeList.children(.someClass);

  • 0

I tried doing

var div = document.createElement('div');
var nodeList = new query.NodeList();
nodeList.push(div);
nodeList.children(".someClass");
// I get error Uncaught TypeError: Object [object HTMLDivElement] has no method 'children'

So I’m guessing I have to convert the html element to a dojo Node element? How do you do this?

Also, do you know of a better way to query an element’s children nodes (based on children’s classNames), when given a parent as an htmlElement variable with no id or class, and children with classNames?

thx to craig swing for the explanation

  • 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-01T10:57:54+00:00Added an answer on June 1, 2026 at 10:57 am

    When you read Node in the documentation, it is referring to a dom node and not anything specific to Dojo.

    If you are looking to create a new dom node, then you should use dom-construct.

    http://dojotoolkit.org/reference-guide/1.7/dojo/dom-construct.html

    Given a particular node, you can query for all of its children using the following:

    var parentNode = ...
    dojo.query('> *', parentNode).forEach(....);
    

    http://dojotoolkit.org/reference-guide/1.7/dojo/query.html#dojo-query

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

Sidebar

Related Questions

I tried doing a mvn dependency:tree and I get a tree of dependencies. My
Here is the JavaScript: $(document).ready(function(){ //set location of san antonio var san_antonio = new
I tried doing this: [toolbar setTint:[UIColor colorWithPatternImage:[UIImage imageNamed:@thingFromMyBundle.png]]]; but it just ended up black.
I have two tables: Contestant and Votes Contestant hasMany Votes I've tried doing a
Before I have tried about doing one attachment (upload) for each record of my
I am doing some exercises and tried to convert a simple class into a
I was doing an assignment, tried simplifying code with same results. unsigned char x=5;
UPDATE: I also tried implementing UITextViewDelegate delegate and then doing in my controller: -
I am doing a streamed musicplayer for android. I have tried with MediaPlayer mp.setDataSource(http://www.myServerPage.com/songUrl.mp3);
Doing a simple Squeryl database lookup, but trying to exclude a value. I've tried:

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.