rendered paste body<!--
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-->
<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 language="JavaScript" type="text/javascript" src="file_js/controllodatirecupero.js"></script>
<script language="JavaScript" type="text/javascript" src="functions.js"></script>
<script type="text/javascript">
var djConfig = {
isDebug: true,
debugAtAllCosts: true
};
</script>
<script type="text/javascript" src="../dojo/dojo.js"></script>
<script type="text/javascript">
dojo.require("dojo.widget.Wizard");
dojo.require("dojo.io.*");
dojo.require("dojo.widget.validate");
dojo.hostenv.writeIncludes();
function cancel() {
alert("Wizard Cancelled!");
}
function done() {
alert("Wizard Done!");
var a=document.getElementById("recuperescion");
a.submit();
}
</script>
<style type="text/css">
body {
font-family : sans-serif;
}
</style>
</head>
<body>
<p>The next shows the option to hide the inactive buttons...</p>
<div id="wizard2" dojoType="WizardContainer" hideDisabledButtons="true" style="width: 100%; height: 200px;">
<div dojoType="WizardPane">
<h1>Step 1 of 3</h1>
<p>Lorem ipsum dolor sit amet</p>
</div>
<div dojoType="WizardPane" passFunction="checkRecupero">
<h1>Step 2 of 3</h1><form method="POST" id="recuperescion" action="" onsubmit="try{dojoForm(this)}catch(E){alert(E.message);exit;};">
<input type="hidden" name="recups" value="1" />
<input type="email" size="20" name="email" dojoType="EmailTextbox"
required="true"
ucfirst="false" onkeyup="javascript:a1=1" />
</form>
<p>consectetur adipisicing elit</p>
</div>
<div dojoType="WizardPane" id ="docpane" doneFunction="done">
ok, premi done
</div>
</div>
</body>
</html>
---------
function dojoForm(form) {
var kw = {
mimetype: "text/plain",
url: "request.php",
formNode: form,
load: function(t, txt, e) {
var allora=dojo.byId('docpane') ;
allora.innerHTML=txt;
},
error: function(t, e) {
dojo.debug("Error!... " + e.message);
}
};
dojo.io.bind(kw);
return false;
}