forked from jackieli123723/JavaScript.Utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjqUtilsDemo.aspx
More file actions
43 lines (41 loc) · 1.78 KB
/
jqUtilsDemo.aspx
File metadata and controls
43 lines (41 loc) · 1.78 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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="jqUtilsDemo.aspx.cs" Inherits="YanZhiwei.JavaScript.Utilities.jqUtilsDemo" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>jqUtils Demo</title>
<script src=/proxy/https/github.com/JavaScriptExample/JavaScript.Utilities/blob/master/YanZhiwei.JavaScript.Utilities/"jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src=/proxy/https/github.com/JavaScriptExample/JavaScript.Utilities/blob/master/YanZhiwei.JavaScript.Utilities/"jqUtils.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$.getJSON("BackHandler/QueryHandler.ashx?action=/proxy/https/github.com/JavaScriptExample/JavaScript.Utilities/blob/master/YanZhiwei.JavaScript.Utilities/queryperson", function (data) {
var table = document.createElement('table');
table.id = "jsonTable";
//table.style = "border-collapse: collapse;";
//table.border = "1";
//table.cellPadding = "5";
$('#container').append(table);
// document.body.appendChild(table);
jqUtils.UITable.createTable('jsonTable', data);
});
$.getJSON("BackHandler/QueryHandler.ashx?action=/proxy/https/github.com/JavaScriptExample/JavaScript.Utilities/blob/master/YanZhiwei.JavaScript.Utilities/queryperson", function (data) {
var table = document.createElement('table');
table.id = "jsonTable2";
//table.style = "border-collapse: collapse;";
//table.border = "1";
//table.cellPadding = "5";
$('#container').append(table);
// document.body.appendChild(table);
jqUtils.UITable.createTable('jsonTable2', data);
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="margin: 20px auto; width: 500px;" id="container">
<%-- <table id="jsonTable" style="border-collapse: collapse;" border="1" cellpadding="5">
</table>--%>
</div>
</form>
</body>
</html>