topical media & game development
professional-ria-05-SimpleLoggingConsole.htm / htm
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Console Example</title>
<script type="text/javascript" src="script/console.js">
</script>
</head>
<body id="console" onLoad="log('The body has been loaded!')">
<div id="main">
<script type="text/javascript" charset="utf-8">
function sendMessage() {
textbox = document.getElementById('log_message');
message = textbox.value;
textbox.value = "";
log(message);
}
</script>
<input type="text" name="log_message" value="" id="log_message" />
<input type="submit" name="submit_button" value="Append Message!" id="submit_button" onClick="log('Submit Clicked!'); sendMessage()"/>
</div>
<br/>
<div id="debugging_output" style="width: 100%; border: 1px solid black;">
<h1>Debugging Output</h1>
<ol id="debugging_messages">
</ol>
</div>
</body>
</html>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.