jquery - Accessing API on another domain -


there api on domain. have url , credentials. when type api url in browser, displays data in browser. data in xml format. need access api using function. how do that? there issue of cross-domain? coz accessing server, on different server. need capture xml data , show in html format. please guide me on this.

in opinion, need use xmlhttprequest and/or jsonp and/or cors. kindly help.

if loading xml data display values in html should able use function jquery.

http://api.jquery.com/jquery.get/

it may encode xml json , use getjson, if unable modify web service may not option.

http://api.jquery.com/jquery.getjson/

if need post things api such images and/or other files need use jsonp or cors. web service of course have expect json value, double check api docs.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -