Create Dojo Dialog in HTML

  • January 30, 2013

You can create a dojo dialog in html code and using the javascript set when the dialog is shown as following.


First declare your dialog:

<div class=”dijitHidden”>
<div data-dojo-type=”dijit.Dialog” data-dojo-props=”title:’Dialog Title'” id=”dialogId”>
<p><b>This div holds the body of the dialog</b></p>

<button onclick=”dijit.byId(‘dialogId’).hide();”>Ok</button>

To show this dialog use the javascript code as such:


No Comments

You can leave the first : )

Leave a Reply

Your email address will not be published. Required fields are marked *