Loading script with parameters passed from another domain

Loading script with parameters passed from another domain

Hi all,

I've got the jQuery code below that sends the value of a hidden field to a php file and loads it into a div.

Everything is working fine when t.php is in the same spot, but as soon as I change t.php to another server and I use http://www.domain.com/t.php , I get a Permission denied to call method XMLHttpRequest.open error.

How can I fix this? I need t.php to be in a different server

Thanks a lot in advance!!

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">

$(document).ready(function(){
$("#sidebar").load("t.php",{"id":$("#page").val()});
});

</script>
</head>body>

    <form><input id="page" name="page" type="hidden" value="5"/></form>

<div id="sidebar"></div>

///////////////// the PHP file: t.php ////////////////////////////
<?php

echo $_REQUEST["id"];

?>