Skip to content

Instantly share code, notes, and snippets.

@endigo9740
Created October 3, 2012 22:30
Show Gist options
  • Save endigo9740/3830303 to your computer and use it in GitHub Desktop.
Save endigo9740/3830303 to your computer and use it in GitHub Desktop.
Javascript - Jquery URL Status Check
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.js"></script>
<script type="text/javascript">
// Check Link Status
$.ajax({
dataType: 'jsonp',
data: 'id=10',
jsonp: 'jsonp_callback',
url: 'http://mobile.belo.stats.com/cfb/cfb_boxscore.aspx?game=201209290198&conf=2',
complete: function(transport) {
if(transport.status == 200) {
alert('Success');
} else {
alert('Failed');
}
}
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment