All pastes #807508 Raw Edit

Something

public text v1 · immutable
·published 2007-12-06 19:34 UTC
rendered paste body
<html>
<head>
<title>AJAX Test</title>
</head>
<body>
<div id="waiter"> .... please wait ... </div>
<script type="text/javascript">
// trying to prevent "waiter" from being displayed until onsubmit...
document.getElementById("waiter").style.display='none';
// this function should happen on submit and display "waiter"
function wait() {
        document.getElementById("waiter").style.display='block';
}
</script>
<div id="form">
<p>This is the form, the what? the Form!</p>
<form action="supercrap.php" method="post" onsubmit="wait">
<input type="submit" name="submit" value="submit"></form></div>
</body>
</html>