I have problem with get the returned data from a link . It is not working . I have search more and try everything but it still not working . could anyone help me . the link : http://ift.tt/1GIaAzA my code is
<!DOCTYPE html>
<html>
<head>
<script src="http://ift.tt/1xDNnh9"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
var request = $.ajax({
type: 'GET',
data: "rn=" + "54455445",
url: "http://ift.tt/1LLnfbk",
success: function(data) {
alert("Data: " + data + "\nStatusA: " + status);
console.log(data);
},
error: function(jqXHR, textStatus, errorThrown) {
alert("Data: " + "Err" + "\nStatus: " + status);
console.log(jqXHR, textStatus, errorThrown);
request.abort();
}
});
$.get("demo_test.asp", function(data, status){
alert("Data: " + data + "\nStatus: " + status);
});
});
});
</script>
</head>
<body>
<button>Send an HTTP GET request to a page and get the result back</button>
</body>
</html>
Thank you
Aucun commentaire:
Enregistrer un commentaire