Index: src/site/docs/tutorials/forms/index.markdown |
diff --git a/src/site/docs/tutorials/forms/index.markdown b/src/site/docs/tutorials/forms/index.markdown |
index 45c2ce97e80a0598648fc7af2b28b6b28c9a9939..b233bfb6b045f8799dc672ccca6e3d618ce75d4b 100644 |
--- a/src/site/docs/tutorials/forms/index.markdown |
+++ b/src/site/docs/tutorials/forms/index.markdown |
@@ -5,9 +5,9 @@ description: "Using HTML forms and input elements to send data to a server" |
has-permalinks: true |
tutorial: |
id: forms |
-next: indexeddb |
+next: indexeddb/ |
next-title: "Use IndexedDB" |
-prev: fetchdata |
+prev: fetchdata/ |
prev-title: "Fetch Data Dynamically" |
--- |
@@ -124,7 +124,7 @@ another useful resource for learning about Dart. |
<iframe class="running-app-frame" |
style="height:100px;width:500px;" |
- src="http://dart-lang.github.com/dart-tutorials-samples/web/target10/search_form/web/search_form.html"> |
+ src="http://dart-lang.github.io/dart-tutorials-samples/web/target10/search_form/web/search_form.html"> |
</iframe> |
The source code for this example is available on github: |
@@ -246,7 +246,7 @@ Enter some data and push the **Submit** button. |
<iframe class="running-app-frame" |
style="height:500px;width:525px;" |
- src="http://dart-lang.github.com/dart-tutorials-samples/web/target10/slambook/web/out/slambook.html"> |
+ src="http://dart-lang.github.io/dart-tutorials-samples/web/target10/slambook/web/out/slambook.html"> |
</iframe> |
The complete source code for both the client and the |
@@ -371,7 +371,7 @@ void submitForm(Event e) { |
###Setting up and making the POST request |
Next, the code creates an |
-<a href="http://api.dartlang.org/dart_html/HttpRequest.html" target="_blank">HttpRequest</a> |
+<a href="https://api.dartlang.org/dart_html/HttpRequest.html" target="_blank">HttpRequest</a> |
object. |
This code uses `new` to create an HttpRequest object, |
which needs to be configured to make a POST request. |
@@ -509,7 +509,7 @@ Let's take a look at the code. |
Below is the entire main() function for slambookserver. |
Using the |
-<a href="http://api.dartlang.org/dart_io/HttpServer.html" |
+<a href="https://api.dartlang.org/dart_io/HttpServer.html" |
target="_blank">HttpServer</a> |
class, |
slambookserver starts listening on port 4040 on the local host |
@@ -564,7 +564,7 @@ Let's take a brief look at Futures before we check out the code |
for handling OPTIONS and POST requests. |
A |
-<a href="http://api.dartlang.org/dart_async/Future.html" |
+<a href="https://api.dartlang.org/dart_async/Future.html" |
target="_blank">Future</a> |
represents a way to get a value sometime in the Future. |
You use Futures to avoid blocking the program |
@@ -600,7 +600,7 @@ and other forms of I/O asynchronously with Futures. |
##Handling OPTIONS requests |
With help from the |
-<a href="http://api.dartlang.org/dart_html/HttpRequest.html" |
+<a href="https://api.dartlang.org/dart_html/HttpRequest.html" |
target="_blank">HttpRequest</a> |
class, the slambook client makes a POST request |
when the user clicks the submit button. |
@@ -631,7 +631,7 @@ void handleOptions(HttpRequest req) { |
The code is straightforward: |
* Get the |
-<a href="http://api.dartlang.org/dart_io/HttpResponse.html" |
+<a href="https://api.dartlang.org/dart_io/HttpResponse.html" |
target="_blank">HttpResponse</a> |
object, |
which carries the server's response to the client. |
@@ -649,7 +649,7 @@ The server uses the following function |
to add CORS headers to its response to both OPTIONS and POST requests. |
The function adds three Access-Control headers to the |
server's response (contained in an |
-<a href="http://api.dartlang.org/dart_html/HttpRequest.html" |
+<a href="https://api.dartlang.org/dart_html/HttpRequest.html" |
target="_blank">HttpResponse</a> |
object). |
@@ -671,7 +671,7 @@ by specifying the headers that it allows. |
For more information about CORS refer to: |
-* <a href="http://www.html5rocks.com/en/tutorials/cors/">Using CORS</a> |
+* <a href="https://www.html5rocks.com/en/tutorials/cors/">Using CORS</a> |
##Handling POST requests |
@@ -758,14 +758,14 @@ and one in dart:io (for servers). |
| Resource | Library | Description | |
|---|---| |
-| <a href="http://api.dartlang.org/dart_html/HttpRequest.html" target="_blank">HttpRequest</a> | dart:html | Client-side HTTP request | |
-| <a href="http://api.dartlang.org/dart_io/HttpRequest.html" target="_blank">HttpRequest</a> | dart:io | Server-side HTTP request | |
-| <a href="http://api.dartlang.org/dart_io/HttpServer.html" target="_blank">HttpServer</a> | dart:io | Server-side object to handle HTTP communication with clients | |
-| <a href="http://api.dartlang.org/dart_io/HttpResponse.html" target="_blank">HttpResponse</a> | dart:io | Server-side object to carry response to client requests | |
-| <a href="http://api.dartlang.org/dart_async/Stream.html" target="_blank">Streams</a> | dart:async | A stream of data | |
-| <a href="http://api.dartlang.org/dart_async/Future.html" target="_blank">Future</a> | dart:async | A way to get a value asynchronously | |
-| <a href="http://api.dartlang.org/dart_json.html" target="_blank">stringify()</a> | dart:json | How you format an object into a JSON string | |
-| <a href="http://pub.dartlang.org/packages/web_ui" target="_blank">Web UI package</a> | web_ui | Data binding, templates, and custom elements | |
+| <a href="https://api.dartlang.org/dart_html/HttpRequest.html" target="_blank">HttpRequest</a> | dart:html | Client-side HTTP request | |
+| <a href="https://api.dartlang.org/dart_io/HttpRequest.html" target="_blank">HttpRequest</a> | dart:io | Server-side HTTP request | |
+| <a href="https://api.dartlang.org/dart_io/HttpServer.html" target="_blank">HttpServer</a> | dart:io | Server-side object to handle HTTP communication with clients | |
+| <a href="https://api.dartlang.org/dart_io/HttpResponse.html" target="_blank">HttpResponse</a> | dart:io | Server-side object to carry response to client requests | |
+| <a href="https://api.dartlang.org/dart_async/Stream.html" target="_blank">Streams</a> | dart:async | A stream of data | |
+| <a href="https://api.dartlang.org/dart_async/Future.html" target="_blank">Future</a> | dart:async | A way to get a value asynchronously | |
+| <a href="https://api.dartlang.org/dart_json.html" target="_blank">stringify()</a> | dart:json | How you format an object into a JSON string | |
+| <a href="https://pub.dartlang.org/packages/web_ui" target="_blank">Web UI package</a> | web_ui | Data binding, templates, and custom elements | |
{: .table} |
##Binding data to different kinds of inputs {#binding-data} |
@@ -861,7 +861,7 @@ Instead, you can look at a different example, |
<iframe class="running-app-frame" |
style="height:400px;width:500px;" |
- src="http://dart-lang.github.com/dart-tutorials-samples/web/target10/multiselect/web/out/multiselect.html"> |
+ src="http://dart-lang.github.io/dart-tutorials-samples/web/target10/multiselect/web/out/multiselect.html"> |
</iframe> |
The source code for this example is available on github: |