jquery - accessing JSON in external server -
i have external json url.
http://kun6858.iptime.org:8080/apps/list/?app_mb_no=9
and access json jquery $.getjson(..)
<!doctype html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <script> $.getjson( "http://kun6858.iptime.org:8080/apps/list/?jsoncallback=?", { app_mb_no : 9 }, function(data) { console.log(data); } ); </script> </body> </html> but can't access json using above source.
i have no idea how access external server's json. source have problem? or json?
for reference, screen shot..

you need use jsonp cross-domain access. therefore, have modify ajax call.
an explaination scenario here:
Comments
Post a Comment