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..

enter image description here

you need use jsonp cross-domain access. therefore, have modify ajax call.

an explaination scenario here:

http://www.jquery4u.com/json/jsonp-examples/


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -