I am trying to develop a component that makes a variable number of AJAX requests, to different URL's. Here is what it does:
1. Make an initial request to get the groups to which the user belongs. 2. When the initial request completes, make a request for each group returned. The URL for the request includes the group id returned in the response to the initial reqest. 3. As each group request completes, and the group data to an array property. 4. When all of the group requests have completed, set a Boolean property so that the "loading" indicator becomes hidden. This is straightforward to do with jquery. You just call $.ajax for each group in step 2. For step 4 you pass all of the Deferred objects returned by the $.ajax calls to $.whenAll. It's clear how to do step 1 with iron-ajax. I am looking for an example of how to accomplish steps 2 and 4 in Polymer. All of the iron-ajax examples I have seen do one ajax request to a service whose URL is hard coded. How do you do a variable number of request, where the URL's are determined at run time? Thanks, Dennis Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/b0fb42f1-9558-4daa-bcaf-7a99b855566b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
