Login Register

Dialog fades out immediately upon load

In creating a dijit dialog, the dialog displays briefly and then fades out.

The markup is as follows:

            <div>
                <div dojoType="dijit.Dialog" id='formTarget' 
                      href='pageXML/traveler/xml/changeLockedJob.htm'
                      style='display:none'/>
            </div>

When the user pushes a button, the following javascript is called:

var dialog = dijit.byId('formTarget');
	dialog.show();

During the brief flash when the form shows, I can see that it is finding the form
source OK.

Thanks very much for any insight...I'm stumped.
Jon