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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:40:31+00:00 2026-05-12T05:40:31+00:00

I use Dojo 1.3.1, essentially under FF3.5 for now. I have a dnd source

  • 0

I use Dojo 1.3.1, essentially under FF3.5 for now.

I have a dnd source which is also a target. I programmatically add some nodes inside, by cloning template items. The aim for the user is then to use dnd to order the items. It is ok for one or two actions, then I got the “this.manager.nodes[i] is null” error in Firebug, then no more dnd action is taken into account.

My HTML (jsp), partial:

<div id="templates" style="display:none">
<div class="dojoDndItem action" id="${act.name}Template">
<fieldset>
  <legend class="dojoDndHandle" >${act.name}</legend>
  <input id="${act.name}.${parm.code}." type="text" style="${parm.style}"
    dojoTypeMod="dijit.form.ValidationTextBox"
    /><br>
</fieldset></div>
</div>

My Javascript for adding/removing dnd items nodes, partial :

function addActionFromTemplate(/* String */actionToCreate, /* Object */data) {
    // value of actionToCreate is template id
    var node = dojo.byId(actionToCreate + "Template");
    if (node) {
        var actNode = node.cloneNode(true);

        // make template id unique
        actNode.id = dojo.dnd.getUniqueId();

        // rename inputs (add the action nb at the end of id)
        // and position dojo type (avoid double parsing)
        dojo.query("input[type=text], select", actNode).forEach( function(input) {
            input.id = input.id + actionsCount;
            dojo.attr(input, "name", input.id);
            dojo.attr(input, "dojoType", dojo.attr(input, "dojoTypeMod"));
            dojo.removeAttr(input, "dojoTypeMod");
        });

        // insert the action at script's tail
        actionList.insertNodes(true, [ actNode  ]);

        dojo.parser.parse(actNode);

        // prepare for next add
        actionsCount++;
    }
}

function deleteAction(node) {
    var cont = getContainerClass(node, "action");
    // remove the fieldset action
    cont.parentNode.removeChild(cont);
}

Thanks for help …

  • 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-05-12T05:40:31+00:00Added an answer on May 12, 2026 at 5:40 am

    OK, it seems that, finally, simply using :

    actionList.insertNodes(false, [ actNode  ]);
    

    instead of

    actionList.insertNodes(true, [ actNode  ]);
    

    fixed the pb .

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

Sidebar

Related Questions

I'm trying to use Dojo dnd Source(1.4.2) to create an interface where I can
I'm starting to use Dojo; this is (essentially) my introduction to AJAX. We have
If I have a <div id=test></div> how do I use Dojo to add and
I'm working on a project where i have to use dojo (i'm doing a
Use case: I've just entered insert mode, and typed some text. Now I want
I plan to use dojo.query to get some elements by their name attribute from
I am trying to use dojo.xhrGet to get some json back from a php
I've delved into Dojo Toolkit which I intend to use with CodeIgniter .
in my Zend Framework App i wanna use Dojo Form. I have problem with
I was successfully using dojo.dnd.Source with Dojo 1.4.3 loaded from my webserver. However, as

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.