I am trying to get json data from a remote host with the following code. But failing, I am using jquery get json
my code
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$("#driver").click(function(event){
$.getJSON('http://108.167.132.194/~softnet/json.php?callback=?', function(jd) {
$('#stage').html('<p> Name: ' + jd.name + '</p>');
$('#stage').append('<p>Password : ' + jd.password+ '</p>');
});
});
});
</script>
When i try to get data from localhost it works perfectly