-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccout.php
More file actions
79 lines (55 loc) · 1.24 KB
/
Copy pathaccout.php
File metadata and controls
79 lines (55 loc) · 1.24 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
include "./head.php";
include "./sidebar.php";
?>
<!-- /.navbar -->
<!-----------======================
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- Small boxes (Stat box) -->
<!-- Main row -->
<div class="row">
<!-- Left col -->
<section class="col-lg-7 connectedSortable">
</section>
</div>
<div class="row">
<!-- Left col -->
<section class="col-lg-5 connectedSortable">
</section>
</div>
</div>
</section>
</div>
<!-- Content Wrapper. Contains page content -->
<?php
include "./footer.php";
?>
<script>
$(document).ready(function(e){
TestAjax();
});
function TestAjax(){
var id="1";
var pw="2";
$.ajax({
url: "AjaxHtml/Recever.php",
type: "POST",
data: JSON.stringify({ id: id, pw: pw }),
contentType: "application/json; charset=utf-8",
success: function(data){
console.log(data);
//$("#result").html(data);
},
error: function(xhr, status, error){
console.log(status,error);
$("#result").html("An error occurred: " + error);
}
});
}
</script>
</body>
</html>