Skip to content

Instantly share code, notes, and snippets.

@neonstalwart
Created June 24, 2010 14:14
Show Gist options
  • Save neonstalwart/451497 to your computer and use it in GitHub Desktop.
Save neonstalwart/451497 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html>
<head>
<title>#10705 Test</title>
<link rel='stylesheet' href='../dojo/resources/dojo.css'>
<link rel='stylesheet' href='../dijit/themes/dijit.css'>
<link rel='stylesheet' href='../dijit/themes/tundra/tundra.css'>
<script type='text/javascript'>
var djConfig = {
parseOnLoad: true
};
</script>
<script type='text/javascript' src='../dojo/dojo.js'></script>
<script type='text/javascript'>
dojo.require("dijit.Dialog");
dojo.require("dijit.form.Button");
dojo.addOnLoad(function(){
var dialog2 = new dijit.Dialog({
title: 'Dialog 2',
content: "<div dojoType='dijit.form.Button' label='Submit' type='submit'></div>"
});
var con = dojo.connect(dialog2, 'hide', function () {
dojo.disconnect(con);
setTimeout(function (lateness) {
console.log(lateness);
dialog2.destroyRecursive();
}, dialog2.duration);
})
var button = new dijit.form.Button({
label: 'open dialog 2',
onClick: function () {
dialog2.show();
}
});
var dialog1 = new dijit.Dialog({
title: "Dialog One",
content: button
});
dialog1.show()
});
</script>
</head>
<body class='tundra'>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment