-
Notifications
You must be signed in to change notification settings - Fork 1
/
bugs.html
59 lines (53 loc) · 1.4 KB
/
bugs.html
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
<!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">
<!--- header and style definitions -->
<title>Report a problem/bug - ThatShouldBeAComic.com</title>
<head>
<!--[if lt IE 9]>
<script src="http://www.dreamreign.com/include/excanvas.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="thatshouldbeacomic.css" />
</head>
<script type="text/javascript">
function loadData(div, url)
{
var XMLHTTP= XMLHttpRequest || ActiveXObject("Microsoft.XMLHTTP");
if (typeof XMLHTTP!= "undefined" )
{
var xmlhttp = new XMLHTTP;
xmlhttp.onreadystatechange= function() {
if(xmlhttp.readyState== 4) //4 is recv'd all responses
{
var resp = xmlhttp.responseText;
document.getElementById(div).innerHTML= resp;
}
}
xmlhttp.open("GET", url , true);
xmlhttp.send(null);
}
else
alert("Your browser doesn't seem to support ajax");
}
//Get Comments
function getComments()
{
loadData("comments","getcomments.php?imgID=45");
}
function addComment()
{
loadData("comments","addcomment.php?imgID=45");
}
function init()
{
getComments();
}
window.onload=function(){
init();
}
</script>
<div id="comments">
</div>
<button type="button" id="addComment" onclick="addComment()">+</button>
<button type="button" id="goHome" onclick="location.href='index.php'">Home</button>
</body>
</html>