Created
October 3, 2012 22:30
-
-
Save endigo9740/3830303 to your computer and use it in GitHub Desktop.
Javascript - Jquery URL Status Check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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