Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
	"http://www.w3.org/TR/html4/strict.dtd">
3
<html>
4
<head>
5
	<title>Chat Demo Starter</title>
6
 
7
 
8
	<script type="text/javascript" src="../../dojo/dojo.js"
9
		djConfig="isDebug: false, defaultTestTheme: 'soria'"></script>
10
	<script type="text/javascript" src="../tests/_testCommon.js"></script>
11
 
12
	<style type="text/css">
13
		@import "../../dijit/tests/css/dijitTests.css";
14
		@import "../themes/soria/soria.css";
15
		@import "chat/chat.css";
16
 
17
		.body { width:720px; margin:0 auto; }
18
 
19
		.picker {
20
			margin:0 auto;
21
			height:100px;
22
		}
23
 
24
		.box a { color:#000; text-decoration:none; }
25
 
26
		.box { 	border:1px solid #666;
27
			background:#b7cdee url('../themes/soria/images/gradientTopBg.png') repeat-x top left;
28
			background-position:0px -1px;
29
			padding:35px;
30
			padding-top:15px;
31
			padding-bottom:15px;
32
			margin:5px;
33
			font-weight:bold;
34
			-moz-border-radius:7pt;
35
			cursor:pointer;
36
		}
37
		.box:hover {
38
			color:#fff;
39
			background-color:#54f767;
40
		}
41
	</style>
42
	<script type="text/javascript">
43
 
44
	var _pass = function(/* Event */e){
45
		var href = e.target.getAttribute("href")||null;
46
		if(href){ window.location.href = href; }
47
	}
48
 
49
 
50
	dojo.addOnLoad(function(){
51
		var links = dojo.query(".box");
52
		dojo.forEach(links,function(node){
53
			dojo.connect(node,"onclick","_pass");
54
		});
55
	});
56
	</script>
57
 
58
</head>
59
<body class="soria">
60
<div class="body">
61
	<h1 class="testTitle">Dojo chat demo preabmle ...</h1>
62
	<p>
63
	There are two examples of chat, using <a
64
	href="http://cometd.org">cometd</a> as a backend and Dojo's
65
	dojox.cometd client as a transport.
66
	</p>
67
	<p>
68
	The first, a simple public chat room, that any live participants
69
	that happen to be online will be able to communicate.
70
	</p>
71
	<div class="dijitInline box" href="chat/community.html">Join Group Chat</div>
72
	<p>The other: the example from the Dojo Book - an example of a
73
	client / operator relationship, where the client chats from an
74
	'existing' page, and the operator has a TabContainer view of
75
	open client chats, and can communicate privately and directly
76
	to the client. The client page demonstrates how this can be used in existing
77
	pages for real-time support. You will need two people for this, or you
78
	are welcome to talk to yourself ...
79
	</p>
80
	<div class="dijitInline">
81
		<div class="dijitInline box" href="chat/client.html">Client Page</div>
82
		<div class="dijitInline box" href="chat/operator.html">Operator Page</div>
83
	</div>
84
	<p>the Chatroom widget source can be found <a href="chat/room.js">here</a>.</p>
85
</div>
86
</body>
87
</html>