summaryrefslogtreecommitdiffstats
path: root/sample1-skel-form-onclick.xhtml
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2013-06-15 19:52:17 -0500
committerKyle Kaminski <kyle@kkaminsk.com>2013-06-15 19:52:17 -0500
commitf5f461aaf9f08951fa3990e49b51a076f7036b16 (patch)
treedeaf01c5633ef17b885d00546e7ea085ab1d1652 /sample1-skel-form-onclick.xhtml
downloadwebsandbox-f5f461aaf9f08951fa3990e49b51a076f7036b16.tar.gz
websandbox-f5f461aaf9f08951fa3990e49b51a076f7036b16.tar.bz2
websandbox-f5f461aaf9f08951fa3990e49b51a076f7036b16.zip
initial commit
Diffstat (limited to 'sample1-skel-form-onclick.xhtml')
-rw-r--r--sample1-skel-form-onclick.xhtml63
1 files changed, 63 insertions, 0 deletions
diff --git a/sample1-skel-form-onclick.xhtml b/sample1-skel-form-onclick.xhtml
new file mode 100644
index 0000000..8286bc7
--- /dev/null
+++ b/sample1-skel-form-onclick.xhtml
@@ -0,0 +1,63 @@
+<!-- subsequent javascript code doesn't want to execute for some goddamn reason -->
+
+<!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">
+<head>
+<title>Sample1</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<script type="text/javascript" src="jquery-2.0.2.js"></script>
+<script type="text/javascript">
+<!-- xhtml needs CDATA to be prepended due to being parsed as xml, something that html 4.01 does automatically -->
+ <![CDATA[
+ function img1handler() {
+ var el = document.getElementById("img1id");
+ el.innerHTML = "<br />you\'re such a loser!";
+ }
+
+ $("document").ready(function() {
+ $("p").css("border","3px solid red");
+ });
+ ]]>
+</script>
+</head>
+<body>
+<h1>hello, world!</h1>
+<b>rtfm:</b> not part of this system<br />
+<p>
+ click to see more!<br /><br />
+ <img src="image1.jpg" alt="see more" onclick="img1handler();" />
+ <span id="img1id"></span>
+</p>
+
+ <script type="text/javascript">
+ <![CDATA[
+ var parsed_member_id = location.search.split("&amp;")[0].split("=");
+ document.write("<br />" + "Your member ID is: " + parsed_member_id[1]);
+ ]]>
+ </script>
+
+<h2><b>Register today!</b></h2>
+<form action="http://www.google.com/search" method="get" name="editinfo">
+<fieldset>
+ Name: <input type="text" name="name" value="Jimmy" /><br />
+ Password: <input type="text" name="member_password" value="P" /><br />
+ E-mail: <input type="text" name="email" value="jimmy.p@gmail.com" /><br />
+ Location: <input type="text" name="location" value="127.0.0.1" /><br />
+ Home Phone: <input type="text" name="home_phone" value="911" /><br />
+ Work Phone: <input type="text" name="work_phone" value="111" /><br />
+ <input type="hidden" name="FormName" value="Record" />
+ <input type="hidden" name="FormAction" value="update" />
+ <script type="text/javascript">
+ <![CDATA[
+ document.write('Member ID: <input type="text" name="member_id" value="' + parsed_member_id[1] + '" />');
+ document.write('<input type="hidden" name="PK_member_id" value="' + parsed_member_id[1] + '" />');
+ ]]>
+ </script>
+ <input type="submit" value="Submit" />
+</fieldset>
+</form>
+<!-- <script type="text/javascript">document.editinfo.submit()</script> -->
+</body>
+</html>
+