|
525
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html lang="en"> |
|
|
3 |
<head> |
|
|
4 |
<meta charset="utf-8"> |
|
|
5 |
<title>DataSource</title> |
|
|
6 |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic"> |
|
|
7 |
<link rel="stylesheet" href="../../build/cssgrids/cssgrids-min.css"> |
|
|
8 |
<link rel="stylesheet" href="../assets/css/main.css"> |
|
|
9 |
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
|
|
10 |
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> |
|
|
11 |
<script src="../../build/yui/yui-min.js"></script> |
|
|
12 |
|
|
|
13 |
</head> |
|
|
14 |
<body> |
|
|
15 |
<!-- |
|
|
16 |
<a href="https://github.com/yui/yui3"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> |
|
|
17 |
--> |
|
|
18 |
<div id="doc"> |
|
|
19 |
<div id="hd"> |
|
|
20 |
<h1><img src="http://yuilibrary.com/img/yui-logo.png"></h1> |
|
|
21 |
</div> |
|
|
22 |
|
|
|
23 |
<a href="#toc" class="jump">Jump to Table of Contents</a> |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
<h1>DataSource</h1> |
|
|
27 |
<div class="yui3-g"> |
|
|
28 |
<div class="yui3-u-3-4"> |
|
|
29 |
<div id="main"> |
|
|
30 |
<div class="content"><div class="intro component"> |
|
|
31 |
<p> |
|
|
32 |
The DataSource Utility provides a consistent API for the retrieval of |
|
|
33 |
data from arbitrary sources over a variety of supported protocols. |
|
|
34 |
DataSource plugins and extensions enable additional functionality such |
|
|
35 |
as schema normalization, caching, and polling of data. |
|
|
36 |
</p> |
|
|
37 |
</div> |
|
|
38 |
|
|
|
39 |
<h2 id="getting-started">Getting Started</h2> |
|
|
40 |
|
|
|
41 |
<p> |
|
|
42 |
To include the source files for DataSource and its dependencies, first load |
|
|
43 |
the YUI seed file if you haven't already loaded it. |
|
|
44 |
</p> |
|
|
45 |
|
|
|
46 |
<pre class="code prettyprint"><script src="http://yui.yahooapis.com/3.10.3/build/yui/yui-min.js"></script></pre> |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
<p> |
|
|
50 |
Next, create a new YUI instance for your application and populate it with the |
|
|
51 |
modules you need by specifying them as arguments to the <code>YUI().use()</code> method. |
|
|
52 |
YUI will automatically load any dependencies required by the modules you |
|
|
53 |
specify. |
|
|
54 |
</p> |
|
|
55 |
|
|
|
56 |
<pre class="code prettyprint"><script> |
|
|
57 |
// Create a new YUI instance and populate it with the required modules. |
|
|
58 |
YUI().use('datasource', function (Y) { |
|
|
59 |
// DataSource is available and ready for use. Add implementation |
|
|
60 |
// code here. |
|
|
61 |
}); |
|
|
62 |
</script></pre> |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
<p> |
|
|
66 |
For more information on creating YUI instances and on the |
|
|
67 |
<a href="http://yuilibrary.com/yui/docs/api/classes/YUI.html#method_use"><code>use()</code> method</a>, see the |
|
|
68 |
documentation for the <a href="../yui/index.html">YUI Global Object</a>. |
|
|
69 |
</p> |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
<h2 id="using">Using DataSources</h2> |
|
|
73 |
|
|
|
74 |
<h3 id="basics">DataSource basics</h3> |
|
|
75 |
|
|
|
76 |
<p> |
|
|
77 |
The DataSource Utility uses a callback mechanism to manage the data |
|
|
78 |
retrieval process across a wide variety of potential sources. Define your |
|
|
79 |
callback object with custom functions that will execute when the data |
|
|
80 |
returns from your source. The <code>sendRequest()</code> method accepts an |
|
|
81 |
object literal with properties for the request value, a callback object, |
|
|
82 |
and/or any configuration values for the request. |
|
|
83 |
</p> |
|
|
84 |
|
|
|
85 |
<pre class="code prettyprint">myDataSource.sendRequest({ |
|
|
86 |
request: myRequest, |
|
|
87 |
on: { |
|
|
88 |
success: function(e){ |
|
|
89 |
alert(e.response); |
|
|
90 |
}, |
|
|
91 |
failure: function(e){ |
|
|
92 |
alert(e.error.message); |
|
|
93 |
} |
|
|
94 |
} |
|
|
95 |
});</pre> |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
<p> |
|
|
100 |
You must instantiate the appropriate DataSource subclass for your source of |
|
|
101 |
data. |
|
|
102 |
</p> |
|
|
103 |
|
|
|
104 |
<h4 id="local">Local sources</h4> |
|
|
105 |
|
|
|
106 |
<p> |
|
|
107 |
Use DataSource.Local when you are working with data that is held in local |
|
|
108 |
memory, such as a JavaScript array or object. |
|
|
109 |
</p> |
|
|
110 |
|
|
|
111 |
<pre class="code prettyprint">var myDataSource = new Y.DataSource.Local({source:["a", "b", "c"]});</pre> |
|
|
112 |
|
|
|
113 |
|
|
|
114 |
<h4 id="get">Remote sources with the Get Utility</h4> |
|
|
115 |
|
|
|
116 |
<p> |
|
|
117 |
Use DataSource.Get to access data coming from a server via the Get Utility. |
|
|
118 |
The Get Utility supports data retrieval from cross-domain resources without |
|
|
119 |
the need for a proxy, but the server must return JSON data and support a |
|
|
120 |
script callback parameter in order for the response to return properly. |
|
|
121 |
This parameter specifies the name of the internally defined function that |
|
|
122 |
the return data will be wrapped in when it returns to the page. |
|
|
123 |
</p> |
|
|
124 |
|
|
|
125 |
<pre class="code prettyprint">var myDataSource = new Y.DataSource.Get({ |
|
|
126 |
source: "http://query.yahooapis.com/v1/public/yql?format=json&" |
|
|
127 |
});</pre> |
|
|
128 |
|
|
|
129 |
|
|
|
130 |
<p> |
|
|
131 |
You should not modify the internally assigned value of this script callback |
|
|
132 |
parameter. However, you may need to set the parameter name to a different |
|
|
133 |
value so that your server will accept it. By default, the script callback |
|
|
134 |
parameter name is <code>"callback"</code>, but this value can be changed |
|
|
135 |
via the Attribute <code>scriptCallbackParam</code>. |
|
|
136 |
</p> |
|
|
137 |
|
|
|
138 |
<pre class="code prettyprint">// By default the request is sent to |
|
|
139 |
// "http://query.yahooapis.com/v1/public/yql?format=json&q=foo&callback=YUI.Env.DataSource.callbacks[0]" |
|
|
140 |
myDataSource.sendRequest({ |
|
|
141 |
request: "q=foo", |
|
|
142 |
callback: myCallback |
|
|
143 |
}); |
|
|
144 |
|
|
|
145 |
// But the parameter name can be customized to match the server requirement |
|
|
146 |
myDataSource.set("scriptCallbackParam", "cbFunc"); |
|
|
147 |
|
|
|
148 |
// So now the request is sent to |
|
|
149 |
// "http://query.yahooapis.com/v1/public/yql?format=json&q=foo&cbFunc=YUI.Env.DataSource.callbacks[0]" |
|
|
150 |
myDataSource.sendRequest({ |
|
|
151 |
request: "q=foo", |
|
|
152 |
callback: myCallback |
|
|
153 |
});</pre> |
|
|
154 |
|
|
|
155 |
|
|
|
156 |
<p> |
|
|
157 |
Use the DataSourceJSONSchema plugin to normalize the data that is sent to |
|
|
158 |
your callack. |
|
|
159 |
</p> |
|
|
160 |
|
|
|
161 |
<pre class="code prettyprint">// Normalize the data sent to myCallback |
|
|
162 |
myDataSource.plug({fn: Y.Plugin.DataSourceJSONSchema, cfg: { |
|
|
163 |
schema: { |
|
|
164 |
resultListLocator: "myResults", |
|
|
165 |
resultFields: ["myField1", "myField2"] |
|
|
166 |
} |
|
|
167 |
}});</pre> |
|
|
168 |
|
|
|
169 |
|
|
|
170 |
<h4 id="io">Remote sources with the IO Utility</h4> |
|
|
171 |
|
|
|
172 |
<p> |
|
|
173 |
DataSource.IO is used to access data coming from a server via the IO |
|
|
174 |
Utility. Note that accessing a cross-domain server will require a |
|
|
175 |
same-domain proxy or enabling IO's XDR feature, in order to bypass standard |
|
|
176 |
browser security restrictions. |
|
|
177 |
</p> |
|
|
178 |
|
|
|
179 |
<pre class="code prettyprint">var myDataSource = new Y.DataSource.IO({source:"./myScript.php"});</pre> |
|
|
180 |
|
|
|
181 |
|
|
|
182 |
<p> |
|
|
183 |
The IO Utility supports retrieval of multiple data formats, including JSON, |
|
|
184 |
XML, and plain text. Use the appropriate DataSchema plugin to normalize the |
|
|
185 |
data that is sent to your callback. |
|
|
186 |
</p> |
|
|
187 |
|
|
|
188 |
<pre class="code prettyprint">myDataSource.plug({fn: Y.Plugin.DataSourceXMLSchema, cfg: { |
|
|
189 |
schema: { |
|
|
190 |
resultListLocator: "resultNodeName", |
|
|
191 |
resultFields: [{key:"myField1", locator:"xpath/to/value"}] |
|
|
192 |
} |
|
|
193 |
}});</pre> |
|
|
194 |
|
|
|
195 |
|
|
|
196 |
<h4 id="function">Sources using custom functions</h4> |
|
|
197 |
|
|
|
198 |
<p> |
|
|
199 |
Defining your own JavaScript function that returns data for a given request |
|
|
200 |
allows full customization of the data retrieval mechanism. |
|
|
201 |
</p> |
|
|
202 |
|
|
|
203 |
<pre class="code prettyprint">var myDataSource = new Y.DataSource.Function({ |
|
|
204 |
source: function (request) { |
|
|
205 |
return data; |
|
|
206 |
} |
|
|
207 |
});</pre> |
|
|
208 |
|
|
|
209 |
|
|
|
210 |
<p> |
|
|
211 |
Since your data can return data of any format, you may consider ways to |
|
|
212 |
taking advantage of the built-in infrastructure, including using a |
|
|
213 |
DataSchema plugin to normalize the data that is sent to your callback. |
|
|
214 |
</p> |
|
|
215 |
|
|
|
216 |
<pre class="code prettyprint">var myDataSource = new Y.DataSource.Function({ |
|
|
217 |
source: function (request) { |
|
|
218 |
return [["ann", 123], ["bill", 456]]; |
|
|
219 |
} |
|
|
220 |
}); |
|
|
221 |
|
|
|
222 |
myDataSource.plug({fn: Y.Plugin.DataSourceArraySchema, cfg: { |
|
|
223 |
schema: { |
|
|
224 |
resultFields: ["name","id"] |
|
|
225 |
} |
|
|
226 |
}});</pre> |
|
|
227 |
|
|
|
228 |
|
|
|
229 |
<h3 id="caching">Caching</h3> |
|
|
230 |
|
|
|
231 |
<p> |
|
|
232 |
The DataSourceCache plugin provides integrated caching functionality to |
|
|
233 |
your DataSource instance. Use the DataSource's <code>plug()</code> method |
|
|
234 |
to instantiate a Cache instance. Set the <code>max</code> Attribute value |
|
|
235 |
to the maximum number of entries the Cache should hold. |
|
|
236 |
</p> |
|
|
237 |
|
|
|
238 |
<pre class="code prettyprint">myDataSource.plug({fn:Y.Plugin.DataSourceCache, cfg:{max:3}});</pre> |
|
|
239 |
|
|
|
240 |
|
|
|
241 |
<p> |
|
|
242 |
Once the plugin is enabled, it will handle caching and retrieval of values |
|
|
243 |
seamlessly for you without the need for extra code. However, all the |
|
|
244 |
methods and properties of the Cache instance is available on the DataSource |
|
|
245 |
instance's <code>cache</code> namepace. |
|
|
246 |
</p> |
|
|
247 |
|
|
|
248 |
<pre class="code prettyprint">// Flush myDataSource's cache. |
|
|
249 |
myDataSource.cache.flush(); |
|
|
250 |
|
|
|
251 |
// Disable myDataSource's cache |
|
|
252 |
myDataSource.cache.set("max", 0);</pre> |
|
|
253 |
|
|
|
254 |
|
|
|
255 |
<h3 id="polling">Polling</h3> |
|
|
256 |
|
|
|
257 |
<p> |
|
|
258 |
Pollable is a DataSource extension that enhances the class with polling |
|
|
259 |
functionality. Once the extension is applied, all instances of DataSource |
|
|
260 |
will have available on their prototype the methods that enable and disable |
|
|
261 |
requests sent at regular intervals. To apply the extension, simply include |
|
|
262 |
the <code>datasource-polling</code> sub-module in your |
|
|
263 |
<code>YUI.use()</code> statement. |
|
|
264 |
</p> |
|
|
265 |
|
|
|
266 |
<pre class="code prettyprint">YUI().use('datasource-io', 'datasource-polling', 'json-parse', function(Y) { |
|
|
267 |
var onlineFriends = Y.one('#friend-count'), |
|
|
268 |
friendData, |
|
|
269 |
intervalId; |
|
|
270 |
|
|
|
271 |
friendData = new Y.DataSource.IO({ |
|
|
272 |
source: '/services/friends/' |
|
|
273 |
}); |
|
|
274 |
|
|
|
275 |
// Start polling the server every 10 seconds |
|
|
276 |
intervalId = friendData.setInterval(10000, { |
|
|
277 |
request : Y.one('#user-id').get('value'), |
|
|
278 |
callback: { |
|
|
279 |
success: function (e) { |
|
|
280 |
var friends = Y.JSON.parse(e.response.results[0]).friendCount; |
|
|
281 |
|
|
|
282 |
if (!friends) { |
|
|
283 |
friends = 'No friends. You should go outside more.'; |
|
|
284 |
} |
|
|
285 |
|
|
|
286 |
onlineFriends.set('text', friends); |
|
|
287 |
}, |
|
|
288 |
failure: function (e) { |
|
|
289 |
onlineFriends.set('text', |
|
|
290 |
'(Bang) Ouch! ' + e.error.message + ' happened!'); |
|
|
291 |
|
|
|
292 |
// Stop polling |
|
|
293 |
friendData.clearInterval(intervalId); |
|
|
294 |
} |
|
|
295 |
} |
|
|
296 |
}); |
|
|
297 |
});</pre> |
|
|
298 |
|
|
|
299 |
|
|
|
300 |
<h3 id="events">Events</h3> |
|
|
301 |
<table> |
|
|
302 |
<thead> |
|
|
303 |
<tr> |
|
|
304 |
<th>Event</th> |
|
|
305 |
<th>When</th> |
|
|
306 |
<th>Event properties</th> |
|
|
307 |
</tr> |
|
|
308 |
</thead> |
|
|
309 |
<tbody> |
|
|
310 |
<tr> |
|
|
311 |
<td><code>request</code></td> |
|
|
312 |
<td>Request is made.</td> |
|
|
313 |
<td> |
|
|
314 |
<dl> |
|
|
315 |
<dt><code>tId</code></dt> |
|
|
316 |
<dd>Unique transaction ID.</dd> |
|
|
317 |
<dt><code>request</code></dt> |
|
|
318 |
<dd>The request value.</dd> |
|
|
319 |
<dt><code>callback</code></dt> |
|
|
320 |
<dd>The callback object.</dd> |
|
|
321 |
<dt><code>cfg</code></dt> |
|
|
322 |
<dd>The configuration object.</dd> |
|
|
323 |
</dl> |
|
|
324 |
</td> |
|
|
325 |
</tr> |
|
|
326 |
<tr> |
|
|
327 |
<td><code>data</code></td> |
|
|
328 |
<td>Raw data is received from the source.</td> |
|
|
329 |
<td> |
|
|
330 |
All properties from <code>request</code> plus |
|
|
331 |
<dl> |
|
|
332 |
<dt><code>data</code></dt> |
|
|
333 |
<dd>The raw data.</dd> |
|
|
334 |
</dl> |
|
|
335 |
</td> |
|
|
336 |
</tr> |
|
|
337 |
<tr> |
|
|
338 |
<td><code>response</code></td> |
|
|
339 |
<td>Response is returned to a callback function.</td> |
|
|
340 |
<td> |
|
|
341 |
All properties from <code>data</code> plus |
|
|
342 |
<dl> |
|
|
343 |
<dt><code>response</code></dt> |
|
|
344 |
<dd>Data normalized into a response object.</dd> |
|
|
345 |
</dl> |
|
|
346 |
</td> |
|
|
347 |
</tr> |
|
|
348 |
<tr> |
|
|
349 |
<td><code>error</code></td> |
|
|
350 |
<td>After <code>response</code> event, before the configured failure callback is executed.</td> |
|
|
351 |
<td>Same properties as the <code>response</code> event</td> |
|
|
352 |
</tr> |
|
|
353 |
</tbody> |
|
|
354 |
</table> |
|
|
355 |
</div> |
|
|
356 |
</div> |
|
|
357 |
</div> |
|
|
358 |
|
|
|
359 |
<div class="yui3-u-1-4"> |
|
|
360 |
<div class="sidebar"> |
|
|
361 |
|
|
|
362 |
<div id="toc" class="sidebox"> |
|
|
363 |
<div class="hd"> |
|
|
364 |
<h2 class="no-toc">Table of Contents</h2> |
|
|
365 |
</div> |
|
|
366 |
|
|
|
367 |
<div class="bd"> |
|
|
368 |
<ul class="toc"> |
|
|
369 |
<li> |
|
|
370 |
<a href="#getting-started">Getting Started</a> |
|
|
371 |
</li> |
|
|
372 |
<li> |
|
|
373 |
<a href="#using">Using DataSources</a> |
|
|
374 |
<ul class="toc"> |
|
|
375 |
<li> |
|
|
376 |
<a href="#basics">DataSource basics</a> |
|
|
377 |
<ul class="toc"> |
|
|
378 |
<li> |
|
|
379 |
<a href="#local">Local sources</a> |
|
|
380 |
</li> |
|
|
381 |
<li> |
|
|
382 |
<a href="#get">Remote sources with the Get Utility</a> |
|
|
383 |
</li> |
|
|
384 |
<li> |
|
|
385 |
<a href="#io">Remote sources with the IO Utility</a> |
|
|
386 |
</li> |
|
|
387 |
<li> |
|
|
388 |
<a href="#function">Sources using custom functions</a> |
|
|
389 |
</li> |
|
|
390 |
</ul> |
|
|
391 |
</li> |
|
|
392 |
<li> |
|
|
393 |
<a href="#caching">Caching</a> |
|
|
394 |
</li> |
|
|
395 |
<li> |
|
|
396 |
<a href="#polling">Polling</a> |
|
|
397 |
</li> |
|
|
398 |
<li> |
|
|
399 |
<a href="#events">Events</a> |
|
|
400 |
</li> |
|
|
401 |
</ul> |
|
|
402 |
</li> |
|
|
403 |
</ul> |
|
|
404 |
</div> |
|
|
405 |
</div> |
|
|
406 |
|
|
|
407 |
|
|
|
408 |
|
|
|
409 |
<div class="sidebox"> |
|
|
410 |
<div class="hd"> |
|
|
411 |
<h2 class="no-toc">Examples</h2> |
|
|
412 |
</div> |
|
|
413 |
|
|
|
414 |
<div class="bd"> |
|
|
415 |
<ul class="examples"> |
|
|
416 |
|
|
|
417 |
|
|
|
418 |
<li data-description="The Local DataSource manages retrieval of in-page data, from JavaScript arrays and objects to DOM elements."> |
|
|
419 |
<a href="datasource-local.html">DataSource.Local</a> |
|
|
420 |
</li> |
|
|
421 |
|
|
|
422 |
|
|
|
423 |
|
|
|
424 |
<li data-description="The Get DataSource, which manages retrieval of data from remote sources via the Get Utility, can be useful for accessing data from cross-domain servers without the need for a proxy."> |
|
|
425 |
<a href="datasource-get.html">DataSource.Get</a> |
|
|
426 |
</li> |
|
|
427 |
|
|
|
428 |
|
|
|
429 |
|
|
|
430 |
<li data-description="The IO DataSource manages retrieval of data from remote sources, via the IO Utility."> |
|
|
431 |
<a href="datasource-io.html">DataSource.IO</a> |
|
|
432 |
</li> |
|
|
433 |
|
|
|
434 |
|
|
|
435 |
|
|
|
436 |
<li data-description="The Function DataSource, which manages retrieval of data from a JavaScript function, provides a highly customizeable mechanism for implementer-defined data retrieval algorithms"> |
|
|
437 |
<a href="datasource-function.html">DataSource.Function</a> |
|
|
438 |
</li> |
|
|
439 |
|
|
|
440 |
|
|
|
441 |
|
|
|
442 |
<li data-description="Use the DataSourceCache plugin to enable caching and reduce server calls to remote sources."> |
|
|
443 |
<a href="datasource-caching.html">DataSource with Caching</a> |
|
|
444 |
</li> |
|
|
445 |
|
|
|
446 |
|
|
|
447 |
|
|
|
448 |
<li data-description="The DataSourceCache plugin supports offline caching so that cached data persists across browser sessions."> |
|
|
449 |
<a href="datasource-offlinecache.html">DataSource with Offline Cache</a> |
|
|
450 |
</li> |
|
|
451 |
|
|
|
452 |
|
|
|
453 |
|
|
|
454 |
<li data-description="Use the Pollable extension to enable polling in your DataSource."> |
|
|
455 |
<a href="datasource-polling.html">DataSource with Polling</a> |
|
|
456 |
</li> |
|
|
457 |
|
|
|
458 |
|
|
|
459 |
|
|
|
460 |
|
|
|
461 |
</ul> |
|
|
462 |
</div> |
|
|
463 |
</div> |
|
|
464 |
|
|
|
465 |
|
|
|
466 |
|
|
|
467 |
<div class="sidebox"> |
|
|
468 |
<div class="hd"> |
|
|
469 |
<h2 class="no-toc">Examples That Use This Component</h2> |
|
|
470 |
</div> |
|
|
471 |
|
|
|
472 |
<div class="bd"> |
|
|
473 |
<ul class="examples"> |
|
|
474 |
|
|
|
475 |
|
|
|
476 |
|
|
|
477 |
|
|
|
478 |
|
|
|
479 |
|
|
|
480 |
|
|
|
481 |
|
|
|
482 |
|
|
|
483 |
|
|
|
484 |
|
|
|
485 |
|
|
|
486 |
|
|
|
487 |
|
|
|
488 |
|
|
|
489 |
|
|
|
490 |
<li data-description="How to provide autocomplete suggestions using a DataSource instance."> |
|
|
491 |
<a href="../autocomplete/ac-datasource.html">Remote Data via DataSource</a> |
|
|
492 |
</li> |
|
|
493 |
|
|
|
494 |
|
|
|
495 |
</ul> |
|
|
496 |
</div> |
|
|
497 |
</div> |
|
|
498 |
|
|
|
499 |
</div> |
|
|
500 |
</div> |
|
|
501 |
</div> |
|
|
502 |
</div> |
|
|
503 |
|
|
|
504 |
<script src="../assets/vendor/prettify/prettify-min.js"></script> |
|
|
505 |
<script>prettyPrint();</script> |
|
|
506 |
|
|
|
507 |
<script> |
|
|
508 |
YUI.Env.Tests = { |
|
|
509 |
examples: [], |
|
|
510 |
project: '../assets', |
|
|
511 |
assets: '../assets/datasource', |
|
|
512 |
name: 'datasource', |
|
|
513 |
title: 'DataSource', |
|
|
514 |
newWindow: '', |
|
|
515 |
auto: false |
|
|
516 |
}; |
|
|
517 |
YUI.Env.Tests.examples.push('datasource-local'); |
|
|
518 |
YUI.Env.Tests.examples.push('datasource-get'); |
|
|
519 |
YUI.Env.Tests.examples.push('datasource-io'); |
|
|
520 |
YUI.Env.Tests.examples.push('datasource-function'); |
|
|
521 |
YUI.Env.Tests.examples.push('datasource-caching'); |
|
|
522 |
YUI.Env.Tests.examples.push('datasource-offlinecache'); |
|
|
523 |
YUI.Env.Tests.examples.push('datasource-polling'); |
|
|
524 |
YUI.Env.Tests.examples.push('ac-datasource'); |
|
|
525 |
|
|
|
526 |
</script> |
|
|
527 |
<script src="../assets/yui/test-runner.js"></script> |
|
|
528 |
|
|
|
529 |
|
|
|
530 |
|
|
|
531 |
</body> |
|
|
532 |
</html> |