tree: 8d77d0ec12621fe85f46b81da9effa554d46378b [path history] [tgz]
  1. demo/
  2. test/
  3. .bower.json
  4. .gitignore
  5. .travis.yml
  6. bower.json
  7. CONTRIBUTING.md
  8. hero.svg
  9. index.html
  10. iron-ajax.html
  11. iron-request.html
  12. README.md
server/static/bower_components/iron-ajax/README.md

Build Status

Demo and API Docs

##<iron-ajax>

The iron-ajax element exposes network request functionality.

<iron-ajax
    auto
    url="http://gdata.youtube.com/feeds/api/videos/"
    params='{"alt":"json", "q":"chrome"}'
    handle-as="json"
    on-response="handleResponse"
    debounce-duration="300"></iron-ajax>

With auto set to true, the element performs a request whenever its url, params or body properties are changed. Automatically generated requests will be debounced in the case that multiple attributes are changed sequentially.

Note: The params attribute must be double quoted JSON.

You can trigger a request explicitly by calling generateRequest on the element.

##<iron-request>

iron-request can be used to perform XMLHttpRequests.

<iron-request id="xhr"></iron-request>
...
this.$.xhr.send({url: url, params: params});