Ensuring dynamically added Dojo Dijits are registered in the DOM.

Posted by Pro777 on Stack Overflow See other posts from Stack Overflow or by Pro777
Published on 2010-03-22T19:58:19Z Indexed on 2010/03/22 20:01 UTC
Read the original article Hit count: 239

Filed under:
|
|

I need to dynamically create Dijits to add N rules to a particular form. Currently I am adding them with the following javascript.

var value = new dijit.form.Select({
    id: "value_" + counter,
    store: ValueStore,
    searchAttr: "description"       
},
"stateSelect" + counter);
value.placeAt(form, "last");
value.startup();

This is creating the element correctly in the form, but it is not associated when the form actually posts. I know Dojo is recognizing the Dijit because the styling is correct. How can I make sure they are included in the DOM form?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dojo