1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Wizard Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js" djConfig="parseOnLoad: true"></script>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojox/widget/Wizard.js"></script>
<script type="text/javascript">
dojo.require("dijit.form.Button");
dojo.require("dijit.Dialog");
dojo.require("dojox.widget.Wizard");
function cancel() {
alert("Wizard Cancelled!");
}
function done() {
alert("Wizard Done!");
}
</script>
</head>
<body>
<div id="external" jsId="external" dojoType="dijit.Dialog" title="My external dialog"
href="/joomla/">
</div>
<p>
When pressing this button the dialog will popup loading the dialog content
using an XHR call.
</p>
<button dojoType="dijit.Button" onClick="dijit.byId('external').show();"
type="button">
Show me!
</button>
<div id="container" style="width:800px; margin:0 auto">
<h1 class="testTitle">dojox.widget.Wizard tests</h1>
<p>This example shows a wizard with customized button labels.</p>
<div id="wizard1" jsId="wizard1" dojoType="dojox.widget.Wizard"
style="width: 640px; height: 200px;"
nextButtonLabel="Go on"
>
<div dojoType="dojox.widget.WizardPane" title="Tab 1">
<h1>Tab 1</h1>
<p>Sized content, box one</p>
</div>
<div dojoType="dojox.widget.WizardPane">
<h1>Tab 2</h1>
</div>
</div>
</div>
</body>
</html> |
Partager