blob: 8286bc78367660d0c86ab4d1ec3e8c95d201e4f6 (
plain)
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
54
55
56
57
58
59
60
61
62
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("&")[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>
|