Results 1 to 5 of 5
Aug 20, 2011, 08:36 #1
- Join Date
- Aug 2011
- 0 Post(s)
- 0 Thread(s)
Hi im new to JSON so im not surprised that its been a slight uphill battle but i believe im 1 line of code from being able to put JSON behind me today and i just cant quite crack it
Response: http://www.radiopayback.com/getimage...2010%20Mix%203 Stupidly long (its a google search request for an image),
but i cant seem to get the syntax correct within my script:
var obj = new Object(); var obj = $.getJSON("/getimage.php?path=" + artist + " - " + title); console.log(obj); var cover = new Object(); var cover = obj.responseData.results.unescapedUrl console.log(cover);
console confirms the obj variable is being passed the JSON information including the "responseText".
error i am getting is "Uncaught TypeError: Cannot read property 'results' of undefined"
any help would be greatly appreciated