view raw
apielotje apielotje - 6 months ago 57
Ajax Question

Sketchfab AJAX json call

I'm trying to collect the url for a sketchfab model thumbnail.


When ik go to the above url, I can see the information I need.

Now i'm trying to make an AJAX call so I can dynamicaly use the thumbnail url.

url: '',
type: 'GET',
crossDomain: true,
success: function(data){

<script src=""></script>

Somehow, i'm just getting [object Object] back, I don't understand what I am doing wrong. Probably something stupid...


You are getting back the JSON data in object form - to make it readable you need to stringify it:


But you shouldn't really need to do this, other than to make it readable, so just work with what you get back.