Json data cannot be read from web url Json data cannot be read from web url json json

Json data cannot be read from web url


That's an error, more specifically a same-origin error

http://jsfiddle.net/gyTjL/

// had to post some code$.get('http://nutri.de.imerchmedia.com/services/accounts').fail(function(a,b,c) {     // gives -> is not allowed by Access-Control-Allow-Origin. });

You can not make ajax requests to domains other than your own, unless JSONP is used, which isn't really ajax, it inserts a script tags, but jQuery makes it look like ajax, or if the server you're contacting supports CORS.

Otherwise, the iteration seems to work -> http://jsfiddle.net/gyTjL/1/