| OLD | NEW |
| 1 --- | 1 --- |
| 2 layout: default | 2 layout: default |
| 3 title: "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: polymer-intro/ | 10 prev: polymer-intro/ |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 and check out the JSON format for each data type. | 83 and check out the JSON format for each data type. |
| 84 | 84 |
| 85 <iframe class="running-app-frame" | 85 <iframe class="running-app-frame" |
| 86 style="height:500px;width:700px;" | 86 style="height:500px;width:700px;" |
| 87 src="examples/its_all_about_you/out/web/index.html"> | 87 src="examples/its_all_about_you/out/web/index.html"> |
| 88 </iframe> | 88 </iframe> |
| 89 | 89 |
| 90 <aside class="alert"> | 90 <aside class="alert"> |
| 91 <strong>Version Note:</strong> The its_all_about_you app | 91 <strong>Version Note:</strong> The its_all_about_you app |
| 92 is compatible with | 92 is compatible with |
| 93 <a href="https://pub.dartlang.org/packages/polymer#versions">polymer.dart 0.8.1<
/a>. | 93 <a href="https://pub.dartlang.org/packages/polymer#versions">polymer.dart 0.8.7<
/a>. |
| 94 </aside> | 94 </aside> |
| 95 | 95 |
| 96 The dart:convert library contains two convenient functions | 96 The dart:convert library contains two convenient functions |
| 97 for working with JSON strings: | 97 for working with JSON strings: |
| 98 | 98 |
| 99 | dart:convert function | Description | | 99 | dart:convert function | Description | |
| 100 |---|---| | 100 |---|---| |
| 101 | <a href="https://api.dartlang.org/dart_convert.html" target="_blank">JSON.deco
de()</a> | Builds Dart objects from a string containing JSON data. | | 101 | <a href="https://api.dartlang.org/dart_convert.html" target="_blank">JSON.deco
de()</a> | Builds Dart objects from a string containing JSON data. | |
| 102 | <a href="https://api.dartlang.org/dart_convert.html" target="_blank">JSON.enco
de()</a> | Serializes a Dart object into a JSON string. | | 102 | <a href="https://api.dartlang.org/dart_convert.html" target="_blank">JSON.enco
de()</a> | Serializes a Dart object into a JSON string. | |
| 103 {: .table} | 103 {: .table} |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 The next tutorial, | 455 The next tutorial, |
| 456 [Get Input from a Form](/docs/tutorials/forms/), | 456 [Get Input from a Form](/docs/tutorials/forms/), |
| 457 contains a client/server example that | 457 contains a client/server example that |
| 458 shows you how to use a form to get data from the user, | 458 shows you how to use a form to get data from the user, |
| 459 and using JSON, send that form to a server, | 459 and using JSON, send that form to a server, |
| 460 and handle the server's response. | 460 and handle the server's response. |
| 461 | 461 |
| 462 {% endcapture %} | 462 {% endcapture %} |
| 463 | 463 |
| 464 {% include tutorial.html %} | 464 {% include tutorial.html %} |
| OLD | NEW |