-
Notifications
You must be signed in to change notification settings - Fork 0
/
ajax.php
61 lines (57 loc) · 2.06 KB
/
ajax.php
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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<title>Ajax Tester</title>
<link href="css/reset.css" rel="stylesheet" type="text/css">
<link href="css/canvas.css" rel="stylesheet" type="text/css">
<link href="js/css/jquery-ui.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
</head>
<body>
<h2>Ajax Test</h2>
<form method='POST' style="text-align:left">
<fieldset>
<input type="radio" name="group1" value="New user" checked onclick="query('newuserchoosefeed.php')"> New user<br>
<input type="radio" name="group1" value="Panel Settings" onclick="query('feedsettings.php')"> Panel Settings<br>
<input type="radio" name="group1" value="Add Other Feed" onclick="query('otherfeed.html')"> Add other Feed<br>
<input type="radio" name="group1" value="Add ISU Feed" onclick="query('isufeed.html')"> Add ISU Feed<br>
<!-- <input type="button" value="Submit" name="Submit"> -->
</fieldset>
</form>
<div style="width:50%; height:100%; margin:auto; border:medium black solid">
<div id="panel">
<div id="panel_title">
Title Text
<div id="panel_title_buttons">
<img src="img/canvas/Title_Bar_Button_Min.png" alt="_">
<img src="img/canvas/Title_Bar_Button_Setting.png" alt="o">
<img src="img/canvas/Title_Bar_Button_Close.png" alt="x" onclick="closewindow()">
</div>
</div>
<div id="panel_feed">
<!-- Ajax here -->
</div>
</div>
</div>
<script type="text/javascript">
function query(page)
{
$.ajax({
url: page,
cache: false,
success: function(html){
$("#panel_feed").html(html);
},
statusCode: {
404: function() {
$("#panel_feed").html("<p>Error loading page: </p><p>" + page + "</p>");
}
}
});
$('#panel').resizable();
}
query('newuserchoosefeed.php');
</script>
</body>
</html>