-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest22.html
More file actions
31 lines (26 loc) · 903 Bytes
/
test22.html
File metadata and controls
31 lines (26 loc) · 903 Bytes
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
<meta charset="utf-8">
<title>Insert title here</title>
<meta name="viewprot" content="width=device-width; initial-scale=1.0">
<script src="http://code.jquery.com/jquery.js"></script>
<script type="text/javascript">
$(function() {
$("#btn1").click(function(){
$.ajax({
url: "test2.txt",
dataType: "text",
timeout:30000,
success: function(data){
//alert(data);
$("#textView1").html(data);
},
error: function(xhr, message, errorThrown){
var msg = xhr.status + " / " + message + " / " + errorThrown;
//alert(msg);
$("#textView1").html(msg);
}
});
});
});
</script>
<input id="btn1" type="button" value="Click Me">
<div id="textView1"></div>