I want to create a div dynamically and then create a dijit button and add it to the div.
I keep getting the error Node cannot be inserted at the specified point in the hierarchy" code: "3
Here is the code: What dumb thing am I overlooking?
//create the div
var fdiv= document.createElement("div");
fdiv.dojoType="dojo.dnd.Source";
fdiv.class="container";
fdiv.copyOnly="true";
fdiv.id="src1";
fdiv.jsId="c2";
document.body.appendChild(fdiv);
//create the button
var fparams = { label: "",
id: "but1",
showLabel: false
};
