OLD | NEW |
1 --- | 1 --- |
2 layout: default | 2 layout: default |
3 title: "Target 9: Fetch Data Dynamically" | 3 title: "Fetch Data Dynamically" |
4 description: "Use HttpRequest to fetch data from a file or a server." | 4 description: "Use HttpRequest to fetch data from a file or a server." |
5 has-permalinks: true | 5 has-permalinks: true |
6 tutorial: | 6 tutorial: |
7 id: fetchdata | 7 id: fetchdata |
8 next: forms | 8 next: forms |
9 next-title: "Get Input from a Form" | 9 next-title: "Get Input from a Form" |
10 prev: custom-elements | 10 prev: custom-elements |
11 prev-title: "Define a Custom DOM Tag" | 11 prev-title: "Define a Custom DOM Tag" |
12 --- | 12 --- |
13 | 13 |
(...skipping 27 matching lines...) Expand all Loading... |
41 <li> | 41 <li> |
42 <a href="https://github.com/dart-lang/dart-tutorials-samples/tree/master/web
/target09/portmanteaux" | 42 <a href="https://github.com/dart-lang/dart-tutorials-samples/tree/master/web
/target09/portmanteaux" |
43 target="_blank">portmanteaux</a> | 43 target="_blank">portmanteaux</a> |
44 </li> | 44 </li> |
45 </ul> | 45 </ul> |
46 | 46 |
47 {% endcapture %} | 47 {% endcapture %} |
48 | 48 |
49 {% capture content %} | 49 {% capture content %} |
50 | 50 |
| 51 <div class="tute-target-title"> |
| 52 <h1>{{page.title}}</h1> |
| 53 <h3>Get data from a file or server.</h3> |
| 54 </div> |
| 55 |
51 Web applications often use | 56 Web applications often use |
52 <a href="http://www.json.org" target="_blank">JSON</a> (JavaScript Object Notati
on) | 57 <a href="http://www.json.org" target="_blank">JSON</a> (JavaScript Object Notati
on) |
53 to pass data between clients and servers. | 58 to pass data between clients and servers. |
54 Data can be _serialized_ into a JSON string, | 59 Data can be _serialized_ into a JSON string, |
55 which is then passed between a client and server, | 60 which is then passed between a client and server, |
56 and revived as an object at its destination. | 61 and revived as an object at its destination. |
57 This target shows you how to use functions in the | 62 This target shows you how to use functions in the |
58 <a href="http://api.dartlang.org/dart_json.html" | 63 <a href="http://api.dartlang.org/dart_json.html" |
59 target="_blank">dart:json</a> | 64 target="_blank">dart:json</a> |
60 library to produce and consume JSON data. | 65 library to produce and consume JSON data. |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 466 |
462 Check out Chris Buckett's article, | 467 Check out Chris Buckett's article, |
463 <a href="/articles/json-web-service/" | 468 <a href="/articles/json-web-service/" |
464 target="_blank">Using Dart with JSON Web Services</a>, | 469 target="_blank">Using Dart with JSON Web Services</a>, |
465 for more information and an example with source code for both | 470 for more information and an example with source code for both |
466 client and server programs. | 471 client and server programs. |
467 | 472 |
468 {% endcapture %} | 473 {% endcapture %} |
469 | 474 |
470 {% include tutorial.html %} | 475 {% include tutorial.html %} |
OLD | NEW |