-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (38 loc) · 1.39 KB
/
index.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New Web Project</title>
</head>
<body>
<script src="Core/Charybdis.Core.Threading.js"></script>
<script src="Core/Charybdis.Core.Objects.js"> </script>
<script language="JavaScript">
var stream = new CCJSONStream();
var rEvent = new CCEvent();
var rObj = new CCObject("RessourceManager");
var rTable = new CCJSONTable("Person");
rTable.appendRow("Name");
rTable.appendRow("Age");
rTable.appendRow("Nationality");
rTable.appendRow("Nickname");
var rData = new CCJSONData(rTable);
rData.setIdentifer("Someone, who invented many things.");
rData.setRowValue("John Carmack","Name");
rData.setRowValue(45,"Age");
rData.setRowValue("US","Nationality");
rData.setRowValue("john1337","Nickname");
stream = cco_createThreadedStream(stream);
rEvent = cco_createEvent( stream.getReceivedEvent() );
rObj.listen( rEvent.EventName );
rObj.call = function()
{
alert(stream.Data[0]);
}
stream.appendRow(rData);
stream.getSingle("Someone, who invented many things.");
</script>
<h1>New Web Project Page</h1>
</body>
</html>