i've got a problem with my phonegap project, this code good work on web browser but no in android emulator . in emulator always get 'Gagal'(failed message ) ,whats wrong with this ?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Loading data into a PhoneGap app</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
</head>
<body>
<ul id="your-tweets"></ul>
<script>
$(document).ready(function(){
$.ajax({
url: 'http://127.0.0.1/json.php',
dataType: 'jsonp',
jsonp: 'jsoncallback',
timeout: 5000,
success: function(data, status){
$('#your-tweets').append('<li>Sukses</li>');
},
error: function(){
$('#your-tweets').append('<li>Gagal</li>');
}
});
});
</script>
</body>
</html>