Here the important JavaScript declarations:<script type="text/javascript">djConfig = { parseOnLoad:true }</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.0"></script>
<script type="text/javascript" src="http://o.aolcdn.com/dojo/1.4.2/dojo/dojo.xd.js"></script>
Here the logical JavaScript part:function opendialog(){
var cont = "hello world<br><p style='text-align:center'>"+
"<button type='button' value='close' onclick='dijit.byId(\"dialogHint\").hide();'>OK</button></p>";
dijit.byId('dialogHint').setContent(cont);
dijit.byId('dialogHint').show();
}
Here the HTML part:<button type="button" value="open" onclick="opendialog();">open dialog</button>
I built an example, using the following Esri code, see here.My example is accessable here.When you press the "open dialog" button, the opening dialog contains an "OK" button. This one closes the dialog. In Firefox it's doing fine, in IE8 it's not.Though, not only this dialog window is making me trouble, but all JavaScript code I try to perform in an dijit.Dialog.Can anyone help please?