-
Notifications
You must be signed in to change notification settings - Fork 22
/
table.html
33 lines (30 loc) · 1.25 KB
/
table.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id='docHTML'>
<head>
<title>Tabulator: Async Javascript And Semantic Web</title>
<link rel="stylesheet" href="chrome://tabulator/content/tabbedtab.css" type="text/css" />
<script src="js/views/tableutil.js" type="text/javascript"></script>
<script src="js/views/tableView.js" type="text/javascript"></script>
<script src="js/views/sorttable.js" type="text/javascript"></script>
</head>
<body>
<div class="viewArea" id="viewArea">
</div>
</body>
<script type="application/x-javascript">
function tableLoader() {
tabulator = Components.classes["@dig.csail.mit.edu/tabulator;1"].getService(Components.interfaces.nsISupports).wrappedJSObject;
//Horrible global vars :(
kb = tabulator.kb;
sf = tabulator.fetcher;
qs = tabulator.qs;
var myTableView = new tableView(document.getElementById('viewArea'));
qs.addListener(myTableView);
//extract the query ID Here!
var q = qs.queries[tabulator.Util.getURIQueryParameters(window.location)['query']];
myTableView.drawQuery(q);
}
document.onLoad=tableLoader();
</script>
</html>