Just added the s to http and appended with https://crossorigin.me and the error has gone but the API is still not being called and not adding the response text to searchObj
@dhcodes maybe I am just trying to be too clever no using get.JSON! I did the weather app with it and then re-wrote it for practice with vanilla js, thought I could go ahead and do this one in vanilla but obviosuly not :smile:
@leena-d you have set the background-color to black
@WilliamFace Since you are using that proxy URL - remove callback=? and change format back to json.
do you mean the hover states @leena-d
@WilliamFace - console.log(searchObj.response);
@sjames1958gm do you know what was causing that?
oddly it still wont parse to a JSON object.... searchObj = JSON.parse(request.responseText); is still not working
When I entered that URL without the crossorigin proxy into my browser it was giving back html page. when i changed it back to json it appeared the response was the JSONP callback code /**/ - I am not sure but the jsonp I have seen starts with /**/ but not sure.
I think the format in the URL was wrong so it was reverting back to it's default
@sjames1958gm that parse worked, thanks.
williamface sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles: