PHP JQuery cross domain
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/752319/cross-domain-ajax-request-with-jquery-php">Cross Domain Ajax Request with JQuery/PHP</a>  </p>
</blockquote>



<p>I hope you can help
I have a php page on a subdomain which onclick needs to execute a PHP script on the main domain with a GET request. For some reason     </p>

<pre><code>$.get("http://www.domain.com/page", {param: param}, function(data){alert(data);});
</code></pre>

<p>Is returning a 404 error. The page is definiately there and will run when the url is entered directed.</p>

<p>Any help would be much appreciated.
Thanks
Mark</p>
