-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdata.html
More file actions
94 lines (92 loc) · 3.23 KB
/
data.html
File metadata and controls
94 lines (92 loc) · 3.23 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Wijmo Example Page</title>
<link href="http://cdn.wijmo.com/themes/aristo/jquery-wijmo.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.wijmo.com/jquery.wijmo-open.1.5.0.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.wijmo.com/jquery.wijmo-complete.1.5.0.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/external/jquery.bgiframe-2.1.3-pre.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/external/globalize.min.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/external/jquery.mousewheel.min.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/external/raphael.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/jquery.wijmo-open.1.5.0.min.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/jquery.wijmo-complete.1.5.0.min.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/external/jquery.tmpl.min.js" type="text/javascript"></script>
<script type="text/javascript">
//demo page script
$(document).ready(function () {
$.ajax({
dataType: "jsonp",
url: "http://odata.netflix.com/Catalog/Genres('Horror Movies')/Titles?$format=json",
jsonp: "$callback",
success: showMovies
});
});
function showMovies(data) {
$("#movieTmpl").tmpl(data.d.results).appendTo("#demo tbody");
$("#demo").wijgrid({
allowSorting: true,
allowPaging: true,
pageSize: 5,
columns: [
{},
{},
{},
{},
{ dataType: "number" }
]
});
}
</script>
<style type="text/css">
body
{
font-size: 80%;
}
#container
{
width: 960px;
margin: 0 auto;
}
</style>
</head>
<body>
<div id="container">
<table id="demo">
<thead>
<tr>
<th>
Box
</th>
<th>
Name
</th>
<th>
Rated
</th>
<th>
Year
</th>
<th>
Rating
</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<script id="movieTmpl" type="text/x-jquery-tmpl">
<tr>
<td><img src="${BoxArt.SmallUrl}" /></td>
<td>${Name}</td>
<td>${Rating}</td>
<td>${ReleaseYear}</td>
<td>${AverageRating}</td>
</tr>
</script>
</div>
</body>
</html>