Force request to a URL on a different domain
<p>I need to make a request to a page on a different domain when a user clicks a link in order to keep the session alive on that domain. I don't care about the response data (except <em>maybe</em> the status code so I can make sure the page hasn't gone down). I tried issuing a request via <code>$.ajax</code> but the same-origin policy is disallowing it.</p>

<p>What's the best way to make request go through?</p>

<p>Should I write an iframe to my page? A script tag? Is there an option in <code>$.ajax</code> that will make it work?</p>

<p><strong>Edit:</strong> I also need to know when the request gone through so that I can do some stuff afterwards (i.e., I'd like a callback).</p>

<hr>

<p>Adding <code>dataType: 'jsonp'</code> sort of makes it work, except that I don't want it to execute whatever the site returns, which it seems to do. The page I'm requesting is a regular old HTML page, but it triggers some stuff on their server that keeps the session alive.</p>
