How do I retrieve a JSON response from a URL

Get help using Construct 2

Post » Tue Mar 31, 2015 3:19 pm

I completed the AJAX tutorial and read through the JSON api forum threads, yet within all of that info there isn't a clear documented step that shows how to get JSON data from a REST call and display it to the screen.

The attached .capx is using the AJAX plugin and I can successfully retrieve a json object from the URL. I can verify this by opening the browser console and see the json object. But I can't display it onscreen. Is there a conversion step which I am missing?

For some reason the file uploader is broken so here's another url...
http://bit.ly/1CHXKlg
B
16
S
3
G
3
Posts: 39
Reputation: 2,692

Post » Tue Mar 31, 2015 3:40 pm

The tag in the on ajax completed is wrong..
It should be "Current" and all works
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Mar 31, 2015 10:50 pm

LittleStain wrote:The tag in the on ajax completed is wrong..
It should be "Current" and all works


Thanks for that, you're right about the tag.
B
16
S
3
G
3
Posts: 39
Reputation: 2,692


Return to How do I....?

Who is online

Users browsing this forum: ismael123, Markowicz and 2 guests