I'm new to JavaScript, and trying to get a JSON object to post on my website. However, I can't get a success response. Since I don't have a proper debugger, I don't see error messages.
This is my code so far, I've read that it could be a security problem and I should look for JSONP, but I haven't found any proper examples to understand it.
<pre><html><head><title>Test0</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><body>
<script>
$.ajax({
url: 'http://openraid.org/api/login/asd/asd',
dataType: 'json',
jsonpCallback: 'MyJSONPCallback',
success: function(data){
alert("TEST");
}
});
</script></head>
</body></html></pre>
So my question is, why don't I get a response?