Bug #8157 » widgetset.html
1 |
<html>
|
---|---|
2 |
<head>
|
3 |
<style type="text/css"> |
4 |
.widget { |
5 |
width: 600px; |
6 |
height: 400px; |
7 |
margin: 0px auto; |
8 |
padding: 0px; |
9 |
border: 0px solid gray; |
10 |
}
|
11 |
|
12 |
.IE-hidden-iframe { |
13 |
position: absolute; |
14 |
top: 0; left: 0; |
15 |
width: 1px; height: 1px; |
16 |
visibility: hidden; |
17 |
}
|
18 |
</style>
|
19 |
<title>Embedded Wt</title> |
20 |
|
21 |
<!-- You need this if you want to use Ext widgets:
|
22 |
-->
|
23 |
<!--[if gte IE 6]>
|
24 |
<script id="ie-deferred-loader" defer="defer" src="//:"></script>
|
25 |
<![endif]-->
|
26 |
</head>
|
27 |
<body>
|
28 |
|
29 |
<!-- These hidden fields are needed for Wt's internal path API
|
30 |
and are optional.
|
31 |
|
32 |
If you use them, then append "&Wt-history=Wt-history" to the Wt
|
33 |
script url, where Wt-history corresponds to the prefix of these fields:
|
34 |
Wt-history-iframe
|
35 |
Wt-history-field
|
36 |
|
37 |
The hidden iframe is only needed for Internet Explorer, so you can
|
38 |
make it conditional:
|
39 |
-->
|
40 |
<!--[if gte IE 6]>
|
41 |
<iframe id="Wt-history-iframe" src="/iglserver.js?request=resource&resource=blank"
|
42 |
class="IE-hidden-iframe">
|
43 |
</iframe>
|
44 |
<![endif]-->
|
45 |
<input id="Wt-history-field" type="hidden"/> |
46 |
|
47 |
<!-- End hidden fields for Wt's internal path API -->
|
48 |
|
49 |
<!--
|
50 |
We need a place holder for every widget to which we want to bind
|
51 |
a WContainerWidget in Wt
|
52 |
-->
|
53 |
<div id="chart" class="widget"> |
54 |
|
55 |
<!--
|
56 |
As the last step, we load our application.
|
57 |
-->
|
58 |
<script src="http://127.0.0.1:8080/iglserver.js?div=chart&Wt-history=Wt-history"></script> |
59 |
|
60 |
</body>
|
61 |
</html>
|
- « Previous
- 1
- 2
- 3
- Next »