zacharytamas / iron-ajax

Exposes XMLHttpRequest functionality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"></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.

About

Exposes XMLHttpRequest functionality


Languages

Language:HTML 100.0%