Yes, you can use JSONP if the remote server can support it (works only with GET requests and works with .ajax ). Another option is to create a bridge server script in the same domain.
, .
:
:
callback({name : "Smith", id : 1})
callback .
, jQuery script DOM:
<script type="text/javascript" src="http://distantdomain.com/?jsonp_callback=someRandomName"></script>
someRandomName JSON.