Team:Groningen/create desc
From 2010.igem.org
(Difference between revisions)
Line 26: | Line 26: | ||
} | } | ||
function post() { | function post() { | ||
+ | document.getElementById("formpje").hide(); | ||
cur = document.getElementById("formpje").innerHTML; | cur = document.getElementById("formpje").innerHTML; | ||
var txt = ""; | var txt = ""; | ||
Line 35: | Line 36: | ||
txt+='<form onSubmit="restore(); method="post"><input type="submit"></form>'; | txt+='<form onSubmit="restore(); method="post"><input type="submit"></form>'; | ||
if (ok) { | if (ok) { | ||
- | document.getElementById(" | + | document.getElementById("ans").innerHTML = txt; |
} | } | ||
Line 42: | Line 43: | ||
function restore() { | function restore() { | ||
- | document.getElementById("formpje"). | + | document.getElementById("ans").show(); |
+ | document.getElementById("formpje").hide(); | ||
+ | return false; | ||
} | } | ||
</script> | </script> | ||
Line 77: | Line 80: | ||
</form> | </form> | ||
+ | </div> | ||
+ | <div id="ans"> | ||
</div> | </div> | ||
</html> | </html> | ||
{{Team:Groningen/Footer}} | {{Team:Groningen/Footer}} |
Revision as of 20:32, 26 October 2010