Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading attribute not functioning #30

Closed
jshcrowthe opened this issue May 22, 2015 · 6 comments
Closed

Loading attribute not functioning #30

jshcrowthe opened this issue May 22, 2015 · 6 comments
Assignees
Labels

Comments

@jshcrowthe
Copy link

While using iron-ajax I am unable to use the loading attribute as described in the docs.

Upon closer inspection I don't see anything in iron-ajax.html that even touches the loading property. Has this been implemented and I'm being foolish or is this missing?

@nathanjohnson320
Copy link

I'm pretty sure you're right, the loading property isn't used anywhere it's just declared.

@rubenstolk
Copy link

Definitely not implemented! Seems like someone forgot while rewriting core-ajax --> iron-ajax

@cdata
Copy link
Contributor

cdata commented Jun 4, 2015

Yes, this is a bug. Thanks for reporting!

@cdata
Copy link
Contributor

cdata commented Jun 4, 2015

This issue has been resolved as of https://github.com/PolymerElements/iron-ajax/releases/tag/v1.0.1. Please update and let me know if the issue is not resolved for you!

@cdata cdata closed this as completed Jun 4, 2015
@jshcrowthe
Copy link
Author

Updated and tested in my application. Looks good to me, thanks @cdata!

@duongphuhiep
Copy link

<iron-ajax
        id="loader"
        auto
        method="POST",
        url="/backend/admin.php"
        body=[[ajaxBody]]
        handle-as="json"
        last-response="{{itemCollection}}"
        loading="{{isloading}}"
        on-loading-changed="_onLoadingChanged"
        debounce-duration="100"></iron-ajax>

It is closed but it did not work for me. Regardless many request has been sent (due to changes of the ajaxBody)

  • my isloading is always true
  • my _onLoadingChanged fires only once

What happen?

(I only need to display the progress-bar base on the iron-ajax.loading properties)

<template is="dom-if" if="{{isloading}}">
  <paper-progress id="progressBar" indeterminate></paper-progress>
</template>

The work-around is to plug to on-request and on-response events in order to compute the isloading and it is not nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants