I have the HTML content for a Dijit dialog in another file which I can load into a Dijit Dialog like this: var dialog = dijit.byId('frmTargetDialog');
dialog.placeAt(dojo.body());
dialog.startup();
dialog.show();
var latWidget = dojo.byId("targetLatDD"); // ERRORS HERE
latWidget.set("value", 25);
Here is the Div that contains the Dialog:
<div data-dojo-type="dijit/Dialog" id="frmTargetDialog" title="Target Dialog" data-dojo-props="href: 'Form.html'"></div>
However, if I try to access the Dijits in the dialog I get a null exception. Anyone know how to access the dijits so that I can populate them? I've tried accessing the textbox before and after showing the dialog and nothing seems to work.Thanks,Ron