| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | |
| 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | |
| 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
| 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | |
| 6 Code distributed by Google as part of the polymer project is also | |
| 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | |
| 8 --><html><head><link rel="import" href="../polymer/polymer.html"> | |
| 9 <link rel="import" href="iron-request.html"> | |
| 10 | |
| 11 <!-- | |
| 12 The `iron-ajax` element exposes network request functionality. | |
| 13 | |
| 14 <iron-ajax | |
| 15 auto | |
| 16 url="http://gdata.youtube.com/feeds/api/videos/" | |
| 17 params='{"alt":"json", "q":"chrome"}' | |
| 18 handle-as="json" | |
| 19 on-response="handleResponse" | |
| 20 debounce-duration="300"></iron-ajax> | |
| 21 | |
| 22 With `auto` set to `true`, the element performs a request whenever | |
| 23 its `url`, `params` or `body` properties are changed. Automatically generated | |
| 24 requests will be debounced in the case that multiple attributes are changed | |
| 25 sequentially. | |
| 26 | |
| 27 Note: The `params` attribute must be double quoted JSON. | |
| 28 | |
| 29 You can trigger a request explicitly by calling `generateRequest` on the | |
| 30 element. | |
| 31 | |
| 32 @demo demo/index.html | |
| 33 --> | |
| 34 | |
| 35 </head><body><script src="iron-ajax-extracted.js"></script></body></html> | |
| OLD | NEW |