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>ContentPane Test</title>
6
 
7
	<script type="text/javascript" src="../../../dojo/dojo.js"
8
		djConfig="isDebug: true, parseOnLoad: true"></script>
9
	<script type="text/javascript" src="../_testCommon.js"></script>
10
 
11
		<script type="text/javascript">
12
			dojo.require("dijit.layout.ContentPane");
13
			dojo.require("dojo.data.ItemFileReadStore");
14
			dojo.require("dijit.form.ComboBox");
15
			dojo.require("dijit.InlineEditBox");
16
			dojo.require("dojo.parser");	// scan page for widgets and instantiate them
17
		</script>
18
		<style>
19
			@import "../../../dojo/resources/dojo.css";
20
			@import "../css/dijitTests.css";
21
 
22
			body {
23
				margin: 1em;
24
				padding: 1em;
25
			}
26
 
27
			.box {
28
			  position: relative;
29
				background-color: white;
30
				border: 2px solid black;
31
				padding: 8px;
32
				margin: 4px;
33
			}
34
		</style>
35
</head>
36
<body>
37
	<h1 class="testTitle">Dijit layout.ContentPane tests</h1>
38
		<p>pre-container paragraph</p>
39
 
40
		<div dojoType="dijit.layout.ContentPane" class="box">
41
			some text (top-level container)
42
 
43
			<div dojoType="dijit.layout.ContentPane" class="box">
44
 
45
				text in the inner container (1)
46
 
47
				<div dojoType="dijit.layout.ContentPane" class="box" href="tab2.html" hasShadow="true">
48
					hi
49
				</div>
50
 
51
				text in the inner container (2)
52
 
53
				<div dojoType="dijit.layout.ContentPane" class="box">
54
					inner-inner 2
55
				</div>
56
 
57
				text in the inner container (3)
58
 
59
				<div dojoType="dijit.layout.ContentPane" class="box">
60
					inner-inner 3
61
				</div>
62
 
63
				text in the inner container (4)
64
 
65
			</div>
66
 
67
			some more text (top-level container)
68
		</div>
69
 
70
		<p>mid-container paragraph</p>
71
 
72
		<div dojoType="dijit.layout.ContentPane" class="box" hasShadow="true">
73
			2nd top-level container
74
		</div>
75
 
76
		<p>post-container paragraph</p>
77
 
78
		<div id="ContentPane3" class="box" hasShadow="true">
79
			some content pane blah blah blah
80
		</div>
81
		<div dojoType="dijit.layout.ContentPane" class="box" href="combotab.html" hasShadow="true" id="test">
82
			<p style='background-color:yellow;border:1px solid red;text-align:center;'>This text should automatically be replaced by downloaded content from combotab.html</p>
83
		</div>
84
		<input type="button" value="Change pane in 3 seconds" onClick='setTimeout("dijit.byId(\"test\").setHref(\"tab2.html\")", 3000);'>
85
		<script type="text/javascript">
86
			dojo.addOnLoad(function(){
87
				var tmp = new dijit.layout.ContentPane({}, dojo.byId("ContentPane3"));
88
				tmp.startup();
89
				console.debug('created ' + tmp);
90
			});
91
		</script>
92
	</body>
93
</html>