Questions tagged [iron-ajax]

38 questions
0
votes
0 answers

Polymer 2 iron-ajax is loading the wrong local file

When loading a local json file with the iron-ajax Polymer web component the response returned is the contents of index.html, not the json file. I am…
bill88
  • 13
  • 4
0
votes
0 answers

iron-ajax nested dom-repeat

I'm trying to make an initial iron Ajax call to URL that's returning a JSON array object to {{ajaxResponse}}. Nested within that array is a link property (ajaxResponse.item.link). I'm then trying to use that link, inside a dom-repeat over the array…
0
votes
1 answer

Polymer iron-ajax not working

I'm testing Polymer's iron-ajax calls. For this, I set up a dummy view:
lte__
  • 7,175
  • 25
  • 74
  • 131
0
votes
0 answers

Polymer Iron-Ajax Get Method retrieving result from an expressJS route returning res.json

My api end point which running on Heroku free account(expressJS) url IS HERE It shows json response from an expressJS route. The data looks like this [{"_id":"5938b81bd263a5144c9d7d17","title":"mlab first entry","__v":0}, …
Marco
  • 1,051
  • 19
  • 41
0
votes
1 answer

Polymer iron-ajax POST method not working

I'm learning Polymer. I'm unable to figure the code to "post" using . I'm using an online testing API (https://reqres.in/), and I should receive this response back with status code 200: {"token": "QpwL5tke4Pnpja7X"}". I couldn't find a…
Marco
  • 1,051
  • 19
  • 41
0
votes
1 answer

Polymer iron-ajax events "on-response" and "on-error" not working on Mozilla FF

Dears, I'm using "iron-ajax"s events to show a success/failure message. For this i'm using respectively "on-response" and "on-error". It is working fine in "Chrome" but it's not triggered in "Mozilla Firefox". Here is a simple example :
user2447161
  • 277
  • 4
  • 12
0
votes
1 answer

Polymer byutv-jsonp/iron-ajax no response

I've been trying to get json data from the GW2 server, which didn't work with iron-ajax due to cross-domain issues. Than I tried this byutv-jsonp and that worked. The problem now is that I get a response with the right data, but it's not triggering…
Edo
  • 85
  • 8
0
votes
0 answers

Setting "api key" on polymer iron-ajax client

I am trying to set an api key on iron-ajax client in a polymer app to consume an API Gateway endpoint of Amazon Web Services. On the server side(API Gateway) I enabled a wildcard on cors, also enabled x-api-key as header and granted…
1 2
3