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
|
<script type="text/javascript" src="../dojo/dojo.js"></script>
<script type="text/javascript">
dojo.require("dojo.widget.*" );
dojo.require("dojo.widget.Dialog");
dojo.require("dojo.event.*");
//all dojo.require above this line
dojo.addOnLoad(init); //function to execute when the page starts
// executed at start
function init(e) {
//dialogHelp
var dlgHelp = dojo.widget.byId("dialogHelp");
var btn = document.getElementById("hider0");
dlgHelp.setCloseControl(btn);
//connect links
var linkQuestion = dojo.byId("linkQuestion");
dojo.event.connect(linkQuestion,'onclick',dlgHelp,"show");
var linkCheckout = dojo.byId("linkCheckout");
dojo.event.connect(linkCheckout,'onclick','checkout');
}
function checkout(){
var contentPane = dojo.widget.byId("content");
contentPane.setUrl('form.html');
}
</script>
</head>
<body>
<a href="#" id="linkQuestion">Hello World</a>
<div dojoType="dialog" id="dialogHelp" bgColor="orange" bgOpacity="0.5" toggle="fade" toggleDuration="250">
<h1>Ajouter un salarie</h1>
<form action="" method="post">
<input type="button" id="hider0" value="OK" /></form>
</div>
<a href="#" id="linkCheckout">AjouterSalarie</a>
<div dojoType="dialog" id="dialogHelp" bgColor="orange" bgOpacity="0.5" toggle="fade" toggleDuration="250">
<h1>Ajouter un salarie</h1>
<form id="myForm" action="showPost.php" method="post">
<div class="formFrame">
<div class="formRow">
<label for="lastname">Last Name</label>
<input id="lastname" type="text" name="lastname"
dojoType="ValidationTextbox" trim="true" ucfirst="true" required="true"
missingMessage="* Your last name is required." />
</div> |
Partager