Cross Domain Ajax Call Jquery
<p>I am trying to call a page with ajax, but from another server. This js code runs from bookmark in any page you want and I need to get some data from my server. How could  I do this? or maybe connect directly to the database?</p>

<p>I got this code:</p>

<pre><code>$j.getJSON(serverUrl+"isLogin.php?callback=?",function(data){
 //really no need to do anything here, we're just posting data
 //but this will output success
 alert(data);
});
</code></pre>

<p>isLogin:</p>

<pre><code>if ($_SESSION['user'] == ''){
     echo json_encode(array("isLogin" =&gt; "false"));

} else {
    echo json_encode(array("isLogin" =&gt; "true"));
}
</code></pre>

<p>How could I make this? I try allot of solutions but none works. This one said no errors, but the alert never appear</p>

<p>Thanks</p>
