2150 |
mathias |
1 |
<!--
|
|
|
2 |
This file is a demo of multiple dojo.data aware widgets using different datastore implementations for displaying data.
|
|
|
3 |
-->
|
|
|
4 |
<html>
|
|
|
5 |
<head>
|
|
|
6 |
<title>Demo of Multiple Widgets using different Datastores</title>
|
|
|
7 |
<style type="text/css">
|
|
|
8 |
@import "../../../dijit/themes/tundra/tundra.css";
|
|
|
9 |
@import "../../../dojo/resources/dojo.css";
|
|
|
10 |
@import "../../../dijit/tests/css/dijitTests.css";
|
|
|
11 |
</style>
|
|
|
12 |
|
|
|
13 |
<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug: true, parseOnLoad: true"></script>
|
|
|
14 |
<script type="text/javascript">
|
|
|
15 |
dojo.require("dojo.parser");
|
|
|
16 |
dojo.require("dijit.form.ComboBox");
|
|
|
17 |
dojo.require("dijit.Tree");
|
|
|
18 |
|
|
|
19 |
dojo.require("dojox.data.OpmlStore");
|
|
|
20 |
dojo.require("dojo.data.ItemFileReadStore");
|
|
|
21 |
|
|
|
22 |
</script>
|
|
|
23 |
</head>
|
|
|
24 |
|
|
|
25 |
<body class="tundra">
|
|
|
26 |
<h1>
|
|
|
27 |
DEMO: Multiple DataStore implementations with dojo.data aware Widgets
|
|
|
28 |
</h1>
|
|
|
29 |
<hr>
|
|
|
30 |
<h3>
|
|
|
31 |
Description:
|
|
|
32 |
</h3>
|
|
|
33 |
<p>
|
|
|
34 |
This simple demo shows how widgets which know only the dojo.data interfaces can work with data sources of varying formats. In this case an OpmlStore
|
|
|
35 |
and a ItemFileReadStore are used to house the same data in different formats.
|
|
|
36 |
</p>
|
|
|
37 |
|
|
|
38 |
<blockquote>
|
|
|
39 |
|
|
|
40 |
<!--
|
|
|
41 |
The store instances used by this demo.
|
|
|
42 |
-->
|
|
|
43 |
<div dojoType="dojo.data.ItemFileReadStore" url="geography.json" jsId="ifrGeoStore"></div>
|
|
|
44 |
<div dojoType="dojox.data.OpmlStore" url="geography.xml" label="text" jsId="opmlGeoStore"></div>
|
|
|
45 |
|
|
|
46 |
<h3>
|
|
|
47 |
Widgets using OpmlStore:
|
|
|
48 |
</h3>
|
|
|
49 |
<blockquote>
|
|
|
50 |
<b>ComboBox:</b><br>
|
|
|
51 |
<input dojoType="dijit.form.ComboBox" id="combo1" name="combo1" class="medium" store="opmlGeoStore" searchAttr="text" query="{}"></input>
|
|
|
52 |
<br>
|
|
|
53 |
<br>
|
|
|
54 |
|
|
|
55 |
<b>Tree:</b><br>
|
|
|
56 |
<div dojoType="dijit.Tree" id="tree1" label="Continents" store="opmlGeoStore"></div>
|
|
|
57 |
</blockquote>
|
|
|
58 |
|
|
|
59 |
<h3>
|
|
|
60 |
Widgets using ItemFileReadStore:
|
|
|
61 |
</h3>
|
|
|
62 |
<blockquote>
|
|
|
63 |
<b>ComboBox:</b><br>
|
|
|
64 |
<input dojoType="dijit.form.ComboBox" id="combo2" name="combo2" class="medium" store="ifrGeoStore" searchAttr="name" query="{}"></input>
|
|
|
65 |
<br>
|
|
|
66 |
<br>
|
|
|
67 |
|
|
|
68 |
<b>Tree:</b><br>
|
|
|
69 |
<div dojoType="dijit.Tree" id="tree2" label="Continents" store="ifrGeoStore"></div>
|
|
|
70 |
</blockquote>
|
|
|
71 |
</body>
|
|
|
72 |
</html>
|